Skip to content

Instantly share code, notes, and snippets.

@cyounkins
Created March 12, 2013 23:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cyounkins/5148174 to your computer and use it in GitHub Desktop.
Save cyounkins/5148174 to your computer and use it in GitHub Desktop.
import time
import zmq
context = zmq.Context()
# Socket to talk to server
print "Connecting to hello world server."
socket = context.socket(zmq.PULL)
socket.bind ("tcp://192.168.0.63:5555")
while True:
print "Receiving..."
message = socket.recv()
print "message: ", message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment