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 623-551-2845
[email protected]  (Work) +1 none currently
AT&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