cvs: phpdoc-it /reference/sockets/functions socket-create-pair.xml
| From: | Andrioli Darvin | Date: | Tue, 15 Jun 2004 12:18:09 +0000 |
| Subject: | cvs: phpdoc-it /reference/sockets/functions socket-create-pair.xml | ||
| Groups: | php.doc.it | ||
| Request: | Send a blank email to doc-it+get-594@lists.php.net to get a copy of this message | ||
darvina Tue Jun 15 08:18:09 2004 EDT
Modified files:
/phpdoc-it/reference/sockets/functions socket-create-pair.xml
Log:
Sync to En tree
http://cvs.php.net/diff.php/phpdoc-it/reference/sockets/functions/socket-create-pair.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc-it/reference/sockets/functions/socket-create-pair.xml
diff -u phpdoc-it/reference/sockets/functions/socket-create-pair.xml:1.3
phpdoc-it/reference/sockets/functions/socket-create-pair.xml:1.4
--- phpdoc-it/reference/sockets/functions/socket-create-pair.xml:1.3 Sun Apr 4 15:44:37 2004
+++ phpdoc-it/reference/sockets/functions/socket-create-pair.xml Tue Jun 15 08:18:09 2004
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- splitted from ./it/functions/sockets.xml, last change in rev 1.4 -->
<!-- last change to 'socket-create-pair' in en/ tree in rev 1.27 -->
-<!-- EN-Revision: 1.5 Maintainer: darvina Status: ready -->
+<!-- EN-Revision: 1.6 Maintainer: darvina Status: ready -->
<!-- OLD-Revision: 1.34/EN.1.27 -->
<refentry id="function.socket-create-pair">
<refnamediv>
<refname>socket_create_pair</refname>
- <refpurpose>Crea una coppia di socket non distinguibili e li memorizza in fd.
</refpurpose>
+ <refpurpose>Crea una coppia di socket non distinguibili e li memorizza in una matrice.
</refpurpose>
</refnamediv>
<refsect1>
<title>Descrizione</title>
@@ -224,6 +224,7 @@
if (socket_read($ary[1], strlen($strtwo), PHP_BINARY_READ) == $strtwo) {
echo "Recieved $strtwo\n";
}
+ socket_close($ary[1]);
} else {
/*child*/
socket_close($ary[1]);
@@ -233,6 +234,7 @@
if (socket_read($ary[0], strlen($strone), PHP_BINARY_READ) == $strone) {
echo "Recieved $strone\n";
}
+ socket_close($ary[0]);
}
?>
]]>