zeromq / zeromq3-x

ØMQ/3.2 release branch - bug fixes only
GNU General Public License v3.0
227 stars 96 forks source link

New socket option (ZMQ_ROUTER_RAW_SOCK) for ZMQ_ROUTER sockets #50

Closed hshardeesi closed 12 years ago

hshardeesi commented 12 years ago

Hi,

I had a requirement to support telnet connection to my application for cli. Instead of writing code for tcp server socket, I decided to make few modifications to zmq and use it instead. Sending pull request for inclusion if it would be useful to others.

With my limited experiments with zmq I made the following modifications and they seem to be working fine for my requirement. May be someone more experienced can review the code changes and provide comments.

Thanks

o To create a raw router sock set the ZMQ_ROUTER_RAW_SOCK socket option o ZMQ_MSGMORE flag is ignored for non-id messages sent on raw socket o A tcp connection can be closed by sending zmq id message followed by zero length data message

hintjens commented 12 years ago

Please make this change against the libzmq master, not the zeromq3-x repo, which is for bug fixes to the 3.2 stable release only. Thanks!