Query: socket_create_listen
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SOCKET_CREATE_LISTEN(3) 1 SOCKET_CREATE_LISTEN(3) socket_create_listen - Opens a socket on port to accept connectionsSYNOPSISresource socket_create_listen (int $port, [int $backlog = 128])DESCRIPTIONsocket_create_listen(3) creates a new socket resource of type AF_INET listening on all local interfaces on the given port waiting for new connections. This function is meant to ease the task of creating a new socket which only listens to accept new connections.PARAMETERSo $port - The port on which to listen on all interfaces. o $backlog - The $backlog parameter defines the maximum length the queue of pending connections may grow to. SOMAXCONN may be passed as $backlog parameter, see socket_listen(3) for more information.RETURN VALUESsocket_create_listen(3) returns a new socket resource on success or FALSE on error. The error code can be retrieved with socket_last_error(3). This code may be passed to socket_strerror(3) to get a textual explanation of the error.NOTESNote If you want to create a socket which only listens on a certain interface you need to use socket_create(3), socket_bind(3) and socket_listen(3).SEE ALSOsocket_create(3), socket_create_pair(3), socket_bind(3), socket_listen(3), socket_last_error(3), socket_strerror(3). PHP Documentation Group SOCKET_CREATE_LISTEN(3)
Related Man Pages |
---|
listen(2) - redhat |
listen(2) - linux |
listen(3socket) - opensolaris |
listen(3xnet) - sunos |
socket_bind(3) - php |
Similar Topics in the Unix Linux Community |
---|
[Problem]Reuse port in BSD socket |
newbie terminology question... |
ports security need help |
JaMailer 1 (Default branch) |
Too many CLOSE_WAIT connections |