[Libwebsockets] how to get listen fd?

Ash 20001 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.
Any ideas? 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20160108/54ba162b/attachment.html>

More information about the Libwebsockets mailing list