listen_fd


Description:

[ Version ( since = "2.48" ) ]
public bool listen_fd (int fd, ServerListenOptions options) throws Error

This attempts to set up this to listen for connections on fd.

See listen for more details.

Note that this will close fd when you free it or call disconnect.

Parameters:

this

a Server

fd

the file descriptor of a listening socket

options

listening options for this server

Returns:

true on success, false if an error occurred (in which case error will be set).