Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

zeromq pub sub example python

while True:
    topic = random.randrange(9999,10005)
    messagedata = random.randrange(1,215) - 80
    print "%d %d" % (topic, messagedata)
    socket.send("%d %d" % (topic, messagedata))
    time.sleep(1)
 
PREVIOUS NEXT
Tagged: #zeromq #pub #python
ADD COMMENT
Topic
Name
9+9 =