cvs: phpdoc-it /reference/sockets/functions socket-listen.xml socket-recvfrom.xml socket-select.xml socket-sendto.xml socket-set-nonblock.xml
socket-strerror.xml
| From: | Andrioli Darvin | Date: | Fri, 09 Jan 2004 20:30:03 +0000 |
| Subject: | cvs: phpdoc-it /reference/sockets/functions socket-listen.xml socket-recvfrom.xml socket-select.xml socket-sendto.xml socket-set-nonblock.xml socket-strerror.xml |
||
| Groups: | php.doc.it | ||
| Request: | Send a blank email to doc-it+get-493@lists.php.net to get a copy of this message | ||
darvina Fri Jan 9 15:30:03 2004 EDT
Modified files:
/phpdoc-it/reference/sockets/functions socket-listen.xml
socket-recvfrom.xml
socket-select.xml
socket-sendto.xml
socket-set-nonblock.xml
socket-strerror.xml
Log:
Sync to En tree
Index: phpdoc-it/reference/sockets/functions/socket-listen.xml
diff -u phpdoc-it/reference/sockets/functions/socket-listen.xml:1.3
phpdoc-it/reference/sockets/functions/socket-listen.xml:1.4
--- phpdoc-it/reference/sockets/functions/socket-listen.xml:1.3 Sun Jun 2 08:46:11 2002
+++ phpdoc-it/reference/sockets/functions/socket-listen.xml Fri Jan 9 15:30:03 2004
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- splitted from ./it/functions/sockets.xml, last change in rev 1.4 -->
<!-- last change to 'socket-listen' in en/ tree in rev 1.1 -->
-<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready -->
+<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready -->
<!-- OLD-Revision: 1.34/EN.1.1 -->
<refentry id="function.socket-listen">
<refnamediv>
Index: phpdoc-it/reference/sockets/functions/socket-recvfrom.xml
diff -u phpdoc-it/reference/sockets/functions/socket-recvfrom.xml:1.2
phpdoc-it/reference/sockets/functions/socket-recvfrom.xml:1.3
--- phpdoc-it/reference/sockets/functions/socket-recvfrom.xml:1.2 Wed Apr 17 03:08:41 2002
+++ phpdoc-it/reference/sockets/functions/socket-recvfrom.xml Fri Jan 9 15:30:03 2004
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- splitted from ./it/functions/sockets.xml, last change in rev 1.4 -->
<!-- last change to 'socket-recvfrom' in en/ tree in rev 1.27 -->
-<!-- EN-Revision: 1.2 Maintainer: darvina Status: ready -->
+<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready -->
<!-- OLD-Revision: 1.34/EN.1.27 -->
<refentry id="function.socket-recvfrom">
<refnamediv>
Index: phpdoc-it/reference/sockets/functions/socket-select.xml
diff -u phpdoc-it/reference/sockets/functions/socket-select.xml:1.5
phpdoc-it/reference/sockets/functions/socket-select.xml:1.6
--- phpdoc-it/reference/sockets/functions/socket-select.xml:1.5 Fri Oct 3 15:27:47 2003
+++ phpdoc-it/reference/sockets/functions/socket-select.xml Fri Jan 9 15:30:03 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.10 Maintainer: darvina Status: ready -->
+<!-- EN-Revision: 1.11 Maintainer: darvina Status: ready -->
<refentry id="function.socket-select">
<refnamediv>
<refname>socket_select</refname>
Index: phpdoc-it/reference/sockets/functions/socket-sendto.xml
diff -u phpdoc-it/reference/sockets/functions/socket-sendto.xml:1.3
phpdoc-it/reference/sockets/functions/socket-sendto.xml:1.4
--- phpdoc-it/reference/sockets/functions/socket-sendto.xml:1.3 Fri Jun 6 16:15:22 2003
+++ phpdoc-it/reference/sockets/functions/socket-sendto.xml Fri Jan 9 15:30:03 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready -->
+<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready -->
<refentry id="function.socket-sendto">
<refnamediv>
<refname>socket_sendto</refname>
@@ -69,13 +69,13 @@
<programlisting role="php">
<![CDATA[
<?php
- $sh = socket_create(AF_INET,SOCK_STREAM,SOL_TCP);
+ $sh = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
if (socket_bind($sh, '127.0.0.1', 4242)) {
echo "Socket agganciato correttamente";
}
$buf = 'Test Message';
$len = strlen($buf);
- if (socket_sendto($sh, $buf, $len, 0x100, '192.168.0.2', 4242) !== FALSE) {
+ if (socket_sendto($sh, $buf, $len, 0x100, '192.168.0.2', 4242) !== false) {
echo "Messaggio inviato correttamente";
}
socket_close($sh);
Index: phpdoc-it/reference/sockets/functions/socket-set-nonblock.xml
diff -u phpdoc-it/reference/sockets/functions/socket-set-nonblock.xml:1.2
phpdoc-it/reference/sockets/functions/socket-set-nonblock.xml:1.3
--- phpdoc-it/reference/sockets/functions/socket-set-nonblock.xml:1.2 Wed Apr 17 03:08:42 2002
+++ phpdoc-it/reference/sockets/functions/socket-set-nonblock.xml Fri Jan 9 15:30:03 2004
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- splitted from ./it/functions/sockets.xml, last change in rev 1.4 -->
<!-- last change to 'socket-set-nonblock' in en/ tree in rev 1.27 -->
-<!-- EN-Revision: 1.2 Maintainer: darvina Status: ready -->
+<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready -->
<!-- OLD-Revision: 1.34/EN.1.27 -->
<refentry id="function.socket-set-nonblock">
<refnamediv>
@@ -18,6 +18,13 @@
<para>
&warn.undocumented.func;
</para>
+ <para>
+ &return.success;
+ </para>
+ <para>
+ Vedere anche <function>socket_set_block</function> e
+ <function>socket_set_option</function>
+ </para>
</refsect1>
</refentry>
Index: phpdoc-it/reference/sockets/functions/socket-strerror.xml
diff -u phpdoc-it/reference/sockets/functions/socket-strerror.xml:1.3
phpdoc-it/reference/sockets/functions/socket-strerror.xml:1.4
--- phpdoc-it/reference/sockets/functions/socket-strerror.xml:1.3 Sun Jun 2 08:50:47 2002
+++ phpdoc-it/reference/sockets/functions/socket-strerror.xml Fri Jan 9 15:30:03 2004
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- splitted from ./it/functions/sockets.xml, last change in rev 1.4 -->
<!-- last change to 'socket-strerror' in en/ tree in rev 1.8 -->
-<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready -->
+<!-- EN-Revision: 1.5 Maintainer: darvina Status: ready -->
<!-- OLD-Revision: 1.34/EN.1.8 -->
<refentry id="function.socket-strerror">
<refnamediv>
@@ -31,7 +31,7 @@
<programlisting role="php">
<![CDATA[
<?php
-if (false == ($socket = @socket_create (AF_INET, SOCK_STREAM, 0))) {
+if (false == ($socket = @socket_create (AF_INET, SOCK_STREAM, SOL_TCP))) {
echo "socket_create() fallito: motivo: " . socket_strerror (socket_last_error()) .
"\n";
}