[Libwebsockets] how to get listen fd?
ash20001 at hotmail.com
Sat Jan 9 08:37:18 CET 2016
I have looked at the source code in server.c to see when the listening fd is created. I would like to gain access to this fd to set a different sock option on it (close on exec flag) using fcntl. However I can't seem to get this fd from a public API. libwebsocket_get_socket_fd only seems to work on wsi and wsi pointer is not provided in most callbacks.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libwebsockets