test_dimFuncProxy.py

Go to the documentation of this file.
00001 import pydim, time
00002 
00003 counter = 2
00004 def myDummyFunc():
00005     global counter 
00006     counter += 1
00007     if counter%3 == 1:
00008          return (1, {1:(1,2,3)}, 'CUCU')
00009     elif counter%3 == 2:
00010          return (1, {12312 : ('fdsa',1,2,3), 'fdsa': 434432243})
00011     else:
00012         raise Exception('Unimplemented')
00013 
00014 if __name__=='__main__':
00015     pydim.PyDimRpcProxy((myDummyFunc,))
00016     pydim.dis_start_serving()
00017     while True:
00018          time.sleep(1)
00019 
00020 

Generated on 5 Feb 2014 for PyDIM by  doxygen 1.4.7