Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

socket_shutdown(3) [php man page]

SOCKET_SHUTDOWN(3)							 1							SOCKET_SHUTDOWN(3)

socket_shutdown - Shuts down a socket for receiving, sending, or both

SYNOPSIS
bool socket_shutdown (resource $socket, [int $how = 2]) DESCRIPTION
The socket_shutdown(3) function allows you to stop incoming, outgoing or all data (the default) from being sent through the $socket PARAMETERS
o $socket - A valid socket resource created with socket_create(3). o $how - The value of $how can be one of the following: possible values for $how +--+--------------------------------------+ | | | |0 | | | | | | | Shutdown socket reading | | | | | | | |1 | | | | | | | Shutdown socket writing | | | | | | | |2 | | | | | | | Shutdown socket reading and writing | | | | +--+--------------------------------------+ RETURN VALUES
Returns TRUE on success or FALSE on failure. PHP Documentation Group SOCKET_SHUTDOWN(3)

Check Out this Related Man Page

SOCKET_CONNECT(3)							 1							 SOCKET_CONNECT(3)

socket_connect - Initiates a connection on a socket

SYNOPSIS
bool socket_connect (resource $socket, string $address, [int $port]) DESCRIPTION
Initiate a connection to $address using the socket resource $socket, which must be a valid socket resource created with socket_create(3). PARAMETERS
o $socket - o $address - The $address parameter is either an IPv4 address in dotted-quad notation (e.g. 127.0.0.1) if $socket is AF_INET, a valid IPv6 address (e.g. ::1) if IPv6 support is enabled and $socket is AF_INET6 or the pathname of a Unix domain socket, if the socket fam- ily is AF_UNIX. o $port - The $port parameter is only used and is mandatory when connecting to an AF_INET or an AF_INET6 socket, and designates the port on the remote host to which a connection should be made. RETURN VALUES
Returns TRUE on success or FALSE on failure. 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. Note If the socket is non-blocking then this function returns FALSE with an error Operation now in progress. SEE ALSO
socket_bind(3), socket_listen(3), socket_create(3), socket_last_error(3), socket_strerror(3). PHP Documentation Group SOCKET_CONNECT(3)
Man Page