[zeromq-dev] patch: non-blocking tcp accept

Dhammika Pathirana dhammika at gmail.com
Tue Apr 28 10:24:19 CEST 2009


Patch to add non-blocking tcp accept.

1. sets non-blocking flag in tcp listener socket
2. moves accept to tcp_listener.in_event()
3. passes native socket descriptor to tcp_socket constructor

Builds and tested on linux.
Would appreciate if someone can run a quick build on a win32 box.
Hopefully it'll build without any drama.

Requires few changes in zmq_server, perf and examples (mainly in
tcp_socket constructor).
If we're happy with this, I'll send a full patch.

Dhammika
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_non_blocking_tcp.diff
Type: text/x-diff
Size: 7189 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20090428/b1d17094/attachment.diff>


More information about the zeromq-dev mailing list