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 -Pieter On Tue, May 21, 2013 at 8:01 AM, Manish Mehra <[email protected]> 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 > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
