Method Stdio.Port()->listen_fd()
- Method listen_fd
int listen_fd(int fd, void|function(:void) accept_callback)
- Description
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.
- Note
This function is only for the advanced user, and is generally used when sockets are passed to Pike at exec time.
- See also