Method _Stdio._port()->listen_fd()

Method listen_fd

int listen_fd(int fd, void|function(:void) accept_callback)


This function does the same as bind, except that instead of creating a new socket and bind it to a port, it expects the file descriptor fd to be an already open port.


This function is only for the advanced user, and is generally used when sockets are passed to Pike at exec time.

See also

bind, accept