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 + + + + + + +