cvs: phpdoc /en/reference/sockets/functions socket-set-block.xml socket-set-nonblock.xml

From: Date: Fri, 30 Jan 2004 10:13:50 +0000
Subject: cvs: phpdoc /en/reference/sockets/functions socket-set-block.xml socket-set-nonblock.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969358582@lists.php.net to get a copy of this message
didou Fri Jan 30 05:13:50 2004 EDT Modified files: /phpdoc/en/reference/sockets/functions socket-set-block.xml socket-set-nonblock.xml Log: CS and WS http://cvs.php.net/diff.php/phpdoc/en/reference/sockets/functions/socket-set-block.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc/en/reference/sockets/functions/socket-set-block.xml diff -u phpdoc/en/reference/sockets/functions/socket-set-block.xml:1.2 phpdoc/en/reference/sockets/functions/socket-set-block.xml:1.3 --- phpdoc/en/reference/sockets/functions/socket-set-block.xml:1.2 Thu Jan 29 15:33:36 2004 +++ phpdoc/en/reference/sockets/functions/socket-set-block.xml Fri Jan 30 05:13:50 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.socket-set-block"> <refnamediv> <refname>socket_set_block</refname> @@ -18,32 +18,33 @@ on the socket specified by the <parameter>socket</parameter> parameter. </para> <para> - <example> - <title><function>socket_set_block</function> example</title> - <programlisting role="php"> + <example> + <title><function>socket_set_block</function> example</title> + <programlisting role="php"> <![CDATA[ <?php + $port = 9090; -if(!$socket = socket_create_listen($port)) -{ +if (!$socket = socket_create_listen($port)) { echo socket_strerror(socket_last_error()); } -if(!socket_set_option($socket, SOL_SOCKET, SO_REUSEADDR, 1)) -{ + +if (!socket_set_option($socket, SOL_SOCKET, SO_REUSEADDR, 1)) { echo socket_strerror(socket_last_error()); } -if(!socket_set_nonblock($socket)) //Socket $socket is now nonblocking -{ + +if (!socket_set_nonblock($socket)) { // $socket is now nonblocking echo socket_strerror(socket_last_error()); } -if(!socket_set_block($socket)) //Socket $socket is now blocking -{ + +if(!socket_set_block($socket)) { // $socket is now blocking echo socket_strerror(socket_last_error()); } + ?> ]]> - </programlisting> - </example> + </programlisting> + </example> </para> <para> &return.success; http://cvs.php.net/diff.php/phpdoc/en/reference/sockets/functions/socket-set-nonblock.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc/en/reference/sockets/functions/socket-set-nonblock.xml diff -u phpdoc/en/reference/sockets/functions/socket-set-nonblock.xml:1.5 phpdoc/en/reference/sockets/functions/socket-set-nonblock.xml:1.6 --- phpdoc/en/reference/sockets/functions/socket-set-nonblock.xml:1.5 Thu Jan 29 14:52:36 2004 +++ phpdoc/en/reference/sockets/functions/socket-set-nonblock.xml Fri Jan 30 05:13:50 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/sockets.xml, last change in rev 1.27 --> <refentry id="function.socket-set-nonblock"> <refnamediv> @@ -18,28 +18,27 @@ on the socket specified by the <parameter>socket</parameter> parameter. </para> <para> - <example> - <title><function>socket_set_nonblock</function> example</title> - <programlisting role="php"> + <example> + <title><function>socket_set_nonblock</function> example</title> + <programlisting role="php"> <![CDATA[ <?php $port = 9090; -if(!$socket = socket_create_listen($port)) -{ +if (!$socket = socket_create_listen($port)) { echo socket_strerror(socket_last_error()); } -if(!socket_set_option($socket, SOL_SOCKET, SO_REUSEADDR, 1)) -{ + +if (!socket_set_option($socket, SOL_SOCKET, SO_REUSEADDR, 1)) { echo socket_strerror(socket_last_error()); } -if(!socket_set_nonblock($socket)) -{ + +if (!socket_set_nonblock($socket)) { echo socket_strerror(socket_last_error()); } ?> ]]> - </programlisting> - </example> + </programlisting> + </example> </para> <para> &return.success;

« previous php.doc (#969358582) next »