From 9ca324c96e4ff4856d0c051a6cd7301457edd4b3 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Thu, 18 Jan 2007 16:21:02 +0000 Subject: [PATCH] add initial docs for stream_socket_shutdown git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@227524 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/stream/constants.xml | 23 +++- .../functions/stream-socket-shutdown.xml | 118 ++++++++++++++++++ 2 files changed, 140 insertions(+), 1 deletion(-) create mode 100644 reference/stream/functions/stream-socket-shutdown.xml diff --git a/reference/stream/constants.xml b/reference/stream/constants.xml index 3e4b4d1f14..097edc213c 100644 --- a/reference/stream/constants.xml +++ b/reference/stream/constants.xml @@ -1,5 +1,5 @@ - +
&reftitle.constants; &extension.constants; @@ -277,6 +277,27 @@ for out-of-band data (TCP, for example). + + STREAM_SHUT_RD + + Used with stream_socket_shutdown to disable + further receptions. Added in PHP 5.2.1. + + + + STREAM_SHUT_WR + + Used with stream_socket_shutdown to disable + further transmissions. Added in PHP 5.2.1. + + + + STREAM_SHUT_RDWR + + Used with stream_socket_shutdown to disable + further receptions and transmissions. Added in PHP 5.2.1. + + diff --git a/reference/stream/functions/stream-socket-shutdown.xml b/reference/stream/functions/stream-socket-shutdown.xml new file mode 100644 index 0000000000..875f009499 --- /dev/null +++ b/reference/stream/functions/stream-socket-shutdown.xml @@ -0,0 +1,118 @@ + + + + + stream_socket_shutdown + Shutdown a full-duplex connection + + + &reftitle.description; + + intstream_socket_shutdown + resourcestream + inthow + + + Shutdowns (partially or not) a full-duplex connection. + + + + + &reftitle.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) or + STREAM_SHUT_RDWR (disable further receptions and + transmissions). + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.examples; + + + A <function>stream_socket_shutdown</function> example + + +]]> + + &example.outputs.similar; + + + + + + + + + &reftitle.seealso; + + + fclose + + + + + + +