Skip to content

Instantly share code, notes, and snippets.

@dsociative
Created February 19, 2013 13:12
Show Gist options
  • Save dsociative/4985730 to your computer and use it in GitHub Desktop.
Save dsociative/4985730 to your computer and use it in GitHub Desktop.
import time
import zmq
context = zmq.Context()
socket = context.socket(zmq.PULL)
sid = 1
socket.connect("ipc://jewels_%s" % sid)
while 1:
print socket.recv()
time.sleep(3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment