Ah - thanks!
Mike


-- Sent from my Palm Pre
On 18 Feb 2011 9:23 p.m., Andrew Hume <[email protected]> wrote: 


On Feb 18, 2011, at 7:04 PM, Mike Stoddart wrote:I just started experimenting 
with pyzmq and openpgm. My send code is:

import zmq

context = zmq.Context()
socket = context.socket(zmq.PUB)
socket.connect("epgm://eth0;239.192.1.1:5555");
this connect should be a bind
socket.send('mike')



My read code is:

import zmq

context = zmq.Context()
socket = context.socket(zmq.SUB)
socket.connect("epgm://eth0;239.192.1.1:5555");

while True:
    message = socket.recv()
    print "Received request: ", message
    socket.send("World")
    sleep(1)

Nothing is received and ctrl+c doesn't interrupt the code.

Any ideas what I'm missing? Thanks
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


------------------Andrew Hume  (best -> Telework) +1 
[email protected]  (Work) +1 none currentlyAT&T 
Labs - Research; member of USENIX and LOPSA



_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to