Skip to content

Instantly share code, notes, and snippets.

@christian-marie
Created December 20, 2013 04:12
Show Gist options
  • Save christian-marie/8050339 to your computer and use it in GitHub Desktop.
Save christian-marie/8050339 to your computer and use it in GitHub Desktop.
import time
import zmq
def result_collector():
context = zmq.Context()
results_receiver = context.socket(zmq.PULL)
results_receiver.bind("tcp://127.0.0.1:1234")
while True:
print results_receiver.recv()
result_collector()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment