php man page for socket_shutdown

Query: socket_shutdown

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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)
Related Man Pages
socket_create_listen(3) - php
socket_listen(3) - php
socket_bind(3) - php
socket_sendto(3) - php
socket_set_option(3) - php
Similar Topics in the Unix Linux Community
How detect TCP/IP socket shutdown when ethernet cable is disconnected