[zeromq-dev] Socket connect status

Martin Sustrik sustrik at 250bpm.com
Wed Mar 17 10:51:51 CET 2010


>> Ok. Fair enough. I believe more people are struggling with the same
>> problem. What about writing a simple sync API implementation?
>> s = zmq_sync_socket (ZMQ_SUB, "tcp://localhost:5555");
>> zmq_sync_send (s, &msg);
>> zmq_sync_recv (s, &msg);
>> The implementation would be pretty trivial. The only thing needed is to
>> prepend frame header to each message sent and remove the frame header
>> from each message received. For desctiption of the wire format, have a
>> look here:
>> http://api.zeromq.org/zmq_tcp.html
> I have thought about implementing something like this in the Python
> bindings using Python's builtin socket library, but having it in 0MQ
> itself would be nice.  Having a pure Python version would enable
> people to use 0MQ in situations where they can't or don't want to
> install libzmq.  For some Python users, it is critical for them to
> have pure python (no compiled code).

Interesting. What's the reason? Security?

As for the sync API. Yes, it would be nice to have it. At the same time 
it's pretty low hanging fruit so if somebody wants to give it a try...


More information about the zeromq-dev mailing list