[zeromq-dev] Full-duplex tcp sockets on io threads

Pieter Hintjens ph at imatix.com
Fri Jul 6 12:57:59 CEST 2012


On Fri, Jul 6, 2012 at 5:39 PM, Rene-Pierre Lehmann <rplehmann at gmail.com> wrote:

> Is it possible with zeromq to use underlying tcp sockets in a
> full-duplex fashion?
> By full duplex I mean that an io thread may read from a tcp socket
> while another io thread may concurrently write to the same socket.

No, this will cause the library to crash. However you can create two
sockets in two threads, and use one for input, and one for output.

-Pieter



More information about the zeromq-dev mailing list