[zeromq-dev] Full-duplex tcp sockets on io threads
Martin Hurton
hurtonm at gmail.com
Fri Jul 6 19:40:23 CEST 2012
Now, both read and write operations on a given TCP socket are
performed by the same IO thread. See stream_engine implementation.
- Martin
On Fri, Jul 6, 2012 at 12:57 PM, Pieter Hintjens <ph at imatix.com> wrote:
> 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
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
More information about the zeromq-dev
mailing list