Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

socket_close(3) [php man page]

SOCKET_CLOSE(3) 							 1							   SOCKET_CLOSE(3)

socket_close - Closes a socket resource

SYNOPSIS
void socket_close (resource $socket) DESCRIPTION
socket_close(3) closes the socket resource given by $socket. This function is specific to sockets and cannot be used on any other type of resources. PARAMETERS
o $socket - A valid socket resource created with socket_create(3) or socket_accept(3). RETURN VALUES
No value is returned. SEE ALSO
socket_bind(3), socket_listen(3), socket_create(3), socket_strerror(3). PHP Documentation Group SOCKET_CLOSE(3)

Check Out this Related Man Page

SOCKET_CREATE_LISTEN(3) 						 1						   SOCKET_CREATE_LISTEN(3)

socket_create_listen - Opens a socket on port to accept connections

SYNOPSIS
resource socket_create_listen (int $port, [int $backlog = 128]) DESCRIPTION
socket_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. PARAMETERS
o $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 VALUES
socket_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. NOTES
Note 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 ALSO
socket_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)
Man Page