STREAM_SOCKET_SHUTDOWN
Shutdown a full-duplex connection
SYNTAX
stream_socket_shutdown ( resource $stream , int $how ) : bool
PARAMETERS
stream
An open stream (opened with stream_socket_client(), for example)
how
One of the following constants:
STREAM_SHUT_RD | disable further receptions |
STREAM_SHUT_WR | disable further transmissions |
STREAM_SHUT_RDWR | disable further receptions and transmissions |
RETURN
Returns TRUE on success or FALSE on failure.
EXAMPLES
STREAM HOW
int(5)
bool(false)
RETURN
true