[zeromq-dev] ZeroMQ integration with Boost
paul at colomiets.name
Fri May 27 23:54:56 CEST 2011
On Fri, May 27, 2011 at 11:38 AM, Maciej Gajewski <Maciej.Gajewski at tibra.com
> I've managed to successfully observe 0MQ sockets with boost asio io_service
> in following way:
> I. The file descriptor returned by getsockopt ZMQ_FD is a descriptor of
> internal stream socket used to send commands from io thread to. You can wrap
> it in boost stream socket.
> Unfortunately boost stream socket closes the descriptor when destroyed, so
> I had to modify stream descriptor service in a way that it does not close
> the socket
Wouldn't it be easier to dup() socket? This way both zeromq and boost can
close their file descriptor separately.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the zeromq-dev