added something to consume the service

This commit is contained in:
Stephen Mardson McQuay 2011-03-03 00:03:52 -07:00
parent cbc2d13e70
commit eefcc682cc

19
bin/results.py Normal file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env python
from multiprocessing.managers import BaseManager
import numpy as np
import interp.bootstrap
class QueueManager(BaseManager): pass
QueueManager.register('get_outqueue')
m = QueueManager(address=('gannon', 50000), authkey='asdf')
m.connect()
if __name__ == '__main__':
outq = m.get_outqueue()
while True:
print outq.get()