[zeromq-dev] Any API to fetch 0mq socket structure from fd?

Pieter Hintjens ph at imatix.com
Tue May 21 09:08:54 CEST 2013

The 0MQ socket is not directly mapped to native sockets (it's an API
object that talks to the 0MQ internal engine), and no, there's no way
to access the client FD information from the 0MQ socket.

Also, you're trying to map 0MQ to BSD sockets, which is not a good
idea. See this article for more info: http://hintjens.com/blog:42


On Tue, May 21, 2013 at 8:01 AM, Manish Mehra <maneesh.mehra84 at gmail.com> wrote:
> I have an application in which the server is listening on a socket. When
> clients connect, I need to know the per client “fd” and the client address.
> This info can be fetched using the socket monitors APIs. Subsequently, I
> need to send data separately for each client. (not send same data to all
> clients). The send API needs *void pointer*. Is there a standard API to get
> socket structure (void pointer) from “fd” which I can use in send API?
> _______________________________________________
> 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