Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LAPTOP_IP = "192.168.1.144"
- seqno = 0
- port = "5556"
- context = zmq.Context()
- socket = context.socket(zmq.PUB)
- socket.bind("tcp://*:%s" % (port))
- topic = "/video"
- print "Sending..."
- socket.send_string("%s" % (topic), zmq.SNDMORE)
- socket.send(data, zmq.SNDMORE)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement