array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'function.socket-shutdown.php', 1 => 'socket_shutdown', ), 'up' => array ( 0 => 'ref.sockets.php', 1 => 'Funções para Socket', ), 'prev' => array ( 0 => 'function.socket-setopt.php', 1 => 'socket_setopt', ), 'next' => array ( 0 => 'function.socket-strerror.php', 1 => 'socket_strerror', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/sockets/functions/socket-shutdown.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8)
socket_shutdown — Shuts down a socket for receiving, sending, or both
The socket_shutdown() function allows you to stop
incoming, outgoing or all data (the default) from being sent through the
socket
Nota:
The associated buffer, or buffers, may or may not be emptied.
socket
A Socket instance created with socket_create().
mode
The value of mode
can be one of the following:
0 |
Shutdown socket reading |
1 |
Shutdown socket writing |
2 |
Shutdown socket reading and writing |