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)