Skip to content

Instantly share code, notes, and snippets.

@arbinish
arbinish / zmq-client.py
Created July 21, 2013 07:31
zmq echo client
import zmq
import sys
ctx = zmq.Context()
sock = ctx.socket(zmq.REQ)
sock.connect('tcp://localhost:3610')
for i in range(10):
print '%s -> ' % randMsg,
sys.stdout.flush()