Method SSL.sslport()->listen_fd()
- Method listen_fd
intlisten_fd(intfd,function(SSL.sslfile|void,mixed|void:int)callback)- Description
Set up listening for SSL connections on an already opened fd.
- Parameter
fd File descriptor to listen on.
- Parameter
callback Callback to call when the SSL connection has been negotiated.
The callback is called with an SSL.sslfile as the first argument, and the id for the SSL.sslfile as the second.
If the
callbackis0(zero), then negotiated SSL.sslfiles will be enqueued for later retrieval with accept().- Returns
Returns
1if listening on the fd succeeded, and0(zero) on failure.- See also
Stdio.Port()->listen_fd(), SSL.sslfile()->set_accept_callback(), bind()