PHP function stream_socket_shutdown()
Availability in versions: PHP 5.2.1
Shutdown a full-duplex connection
Parameters
| Parameter | Data type | Default value | Note |
|---|---|---|---|
$stream |
resource |
not | An open stream (opened with stream_socket_client, for example) |
$how |
int |
not | One of the following constants: STREAM_SHUT_RD (disable further receptions), STREAM_SHUT_WR (disable further transmissions) or STREAM_SHUT_RDWR (disable further receptions and transmissions). |
Return values
bool
Returns true on success, otherwise false on failure.