cvs: phpdoc-it /reference/sockets/functions socket-bind.xml socket-create.xml socket-getpeername.xml socket-getsockname.xml
| From: | Andrioli Darvin | Date: | Mon, 05 May 2003 19:52:46 +0000 |
| Subject: | cvs: phpdoc-it /reference/sockets/functions socket-bind.xml socket-create.xml socket-getpeername.xml socket-getsockname.xml | ||
| Groups: | php.doc.it | ||
| Request: | Send a blank email to doc-it+get-359@lists.php.net to get a copy of this message | ||
darvina Mon May 5 15:52:46 2003 EDT
Modified files:
/phpdoc-it/reference/sockets/functions socket-bind.xml
socket-create.xml
socket-getpeername.xml
socket-getsockname.xml
Log:
Sync to En tree
Index: phpdoc-it/reference/sockets/functions/socket-bind.xml diff -u phpdoc-it/reference/sockets/functions/socket-bind.xml:1.3 phpdoc-it/reference/sockets/functions/socket-bind.xml:1.4 --- phpdoc-it/reference/sockets/functions/socket-bind.xml:1.3 Sun Jun 2 08:39:18 2002 +++ phpdoc-it/reference/sockets/functions/socket-bind.xml Mon May 5 15:52:46 2003 @@ -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-bind' in en/ tree in rev 1.3 --> -<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: darvina Status: ready --> <!-- OLD-Revision: 1.34/EN.1.3 --> <refentry id="function.socket-bind"> <refnamediv> @@ -41,7 +41,10 @@ &return.success; Il codice di errore può essere recuperato con <function>socket_last_error</function>. Questo codice può essere passato alla funzione <function>socket_strerror</function> - per ottenere una descrizione dell'errore. + per ottenere una descrizione dell'errore. Si è rilevato che + <function>socket_last_error</function> riporta un codice di errore errato se si tenta + di eseguire il bind di un socket con un indirizzo errato + su sistemi Windows9x/ME. </para> <para> Vedere anche Index: phpdoc-it/reference/sockets/functions/socket-create.xml diff -u phpdoc-it/reference/sockets/functions/socket-create.xml:1.4 phpdoc-it/reference/sockets/functions/socket-create.xml:1.5 --- phpdoc-it/reference/sockets/functions/socket-create.xml:1.4 Mon Feb 24 15:45:01 2003 +++ phpdoc-it/reference/sockets/functions/socket-create.xml Mon May 5 15:52:46 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/sockets.xml, last change in rev 1.1 --> <!-- last change to 'socket-create' in en/ tree in rev 1.4 --> -<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: darvina Status: ready --> <!-- OLD-Revision: 1.34/EN.1.4 --> <refentry id="function.socket-create"> <refnamediv> @@ -41,7 +41,14 @@ <entry> Protocollo Internet basato su IPv4. TCP e UDP sono i protocolli più comuni di questa famiglia. - </entry> + </entry> + </row> + <row> + <entry>AF_INET6</entry> + <entry> + Protocolli basati su IPv6. TCP ed UDP sono i protocolli più comuni + di questa famiglia. Il supporto a questa famiglia è stato aggiunto in <literal>PHP 5.0</literal>. + </entry> </row> <row> <entry>AF_UNIX</entry> Index: phpdoc-it/reference/sockets/functions/socket-getpeername.xml diff -u phpdoc-it/reference/sockets/functions/socket-getpeername.xml:1.3 phpdoc-it/reference/sockets/functions/socket-getpeername.xml:1.4 --- phpdoc-it/reference/sockets/functions/socket-getpeername.xml:1.3 Sun Jun 2 08:53:48 2002 +++ phpdoc-it/reference/sockets/functions/socket-getpeername.xml Mon May 5 15:52:46 2003 @@ -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-getpeername' 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-getpeername"> <refnamediv> @@ -21,10 +21,10 @@ </methodsynopsis> &warn.experimental.func; <para> - Se il socket dato è di tipo <constant>AF_INET</constant>, + Se il socket dato è di tipo <constant>AF_INET</constant> oppure <constant>AF_INET6</constant>, <function>socket_getpeername</function> restituisce l'<emphasis>indirizzo IP</emphasis> - remoto nella notazione a quattro cifre con punto (ad esempio - <literal>127.0.0.1</literal>) nel parametro <parameter>indirizzo</parameter> + remoto nella notazione appropriata (ad esempio + <literal>127.0.0.1</literal> oppure <literal>fe80::1</literal>) nel parametro <parameter>indirizzo</parameter> e, se presente il parametro opzionale <parameter>porta</parameter>, anche la porta associata. </para> @@ -34,15 +34,24 @@ (ad esempio <literal>/var/run/daemon.sock</literal>) nel parametro <parameter>indirizzo</parameter>. </para> + <note> + <simpara> + La funzione <function>socket_getpeername</function> non dovrebbe essere usata con socket + <constant>AF_UNIX</constant> creati da <function>socket_accept</function>. + Soltanto i socket creati con <function>socket_connect</function> o un socket + server primario conseguente alla chiamata di <function>socket_bind</function> restituirà + dei valori significativi. + </simpara> + </note> <para> &return.success; <function>socket_getpeername</function> può anche restituire - &false; se il tipo di socket non è <constant>AF_INET</constant> o + &false; se il tipo di socket non è <constant>AF_INET</constant>, <constant>AF_INET6</constant> o <constant>AF_UNIX</constant>, in questo caso l'ultimo codice di errore del socket <emphasis>non</emphasis> viene aggiornato. </para> <para> Vedere anche - <function>socket_getpeername</function>, + <function>socket_getsockname</function>, <function>socket_last_error</function> e <function>socket_strerror</function>. </para> Index: phpdoc-it/reference/sockets/functions/socket-getsockname.xml diff -u phpdoc-it/reference/sockets/functions/socket-getsockname.xml:1.3 phpdoc-it/reference/sockets/functions/socket-getsockname.xml:1.4 --- phpdoc-it/reference/sockets/functions/socket-getsockname.xml:1.3 Sun Jun 2 08:54:19 2002 +++ phpdoc-it/reference/sockets/functions/socket-getsockname.xml Mon May 5 15:52:46 2003 @@ -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-getsockname' in en/ tree in rev 1.27 --> -<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready --> <!-- OLD-Revision: 1.34/EN.1.27 --> <refentry id="function.socket-getsockname"> <refnamediv> @@ -21,10 +21,10 @@ </methodsynopsis> &warn.experimental.func; <para> - Se il socket dato è di tipo <constant>AF_INET</constant>, + Se il socket dato è di tipo <constant>AF_INET</constant> oppure <constant>AF_INET6</constant>, <function>socket_getsockname</function> restituisce l'<emphasis>indirizzo IP</emphasis> - locale nella notazione a quattro cifre con punto (ad esempio - <literal>127.0.0.1</literal>) nel parametro <parameter>indirizzo</parameter> + locale nella notazione appropriata (ad esempio + <literal>127.0.0.1</literal> oppure <literal>fe80::1</literal>) nel parametro <parameter>indirizzo</parameter> e, se presente il parametro opzionale <parameter>porta</parameter>, anche la porta associata. </para> @@ -33,10 +33,19 @@ <function>socket_getsockname</function> restituirà un percorso Unix (ad esempio <literal>/var/run/daemon.sock</literal>) nel parametro <parameter>indirizzo</parameter>. - </para> + </para> + <note> + <simpara> + La funzione <function>socket_getsockname</function> non dovrebbe essere usata con socket + <constant>AF_UNIX</constant> creati da <function>socket_accept</function>. + Soltanto i socket creati con <function>socket_connect</function> o un socket + server primario conseguente alla chiamata di <function>socket_bind</function> restituirà + dei valori significativi. + </simpara> + </note> <para> &return.success; <function>socket_getsockname</function> può anche restituire - &false; se il tipo di socket non è <constant>AF_INET</constant> o + &false; se il tipo di socket non è <constant>AF_INET</constant>, <constant>AF_INET6</constant> o <constant>AF_UNIX</constant>, in questo caso l'ultimo codice di errore del socket <emphasis>non</emphasis> viene aggiornato. </para>
Index: phpdoc-it/reference/sockets/functions/socket-bind.xml diff -u phpdoc-it/reference/sockets/functions/socket-bind.xml:1.3 phpdoc-it/reference/sockets/functions/socket-bind.xml:1.4 --- phpdoc-it/reference/sockets/functions/socket-bind.xml:1.3 Sun Jun 2 08:39:18 2002 +++ phpdoc-it/reference/sockets/functions/socket-bind.xml Mon May 5 15:52:46 2003 @@ -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-bind' in en/ tree in rev 1.3 --> -<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: darvina Status: ready --> <!-- OLD-Revision: 1.34/EN.1.3 --> <refentry id="function.socket-bind"> <refnamediv> @@ -41,7 +41,10 @@ &return.success; Il codice di errore può essere recuperato con <function>socket_last_error</function>. Questo codice può essere passato alla funzione <function>socket_strerror</function> - per ottenere una descrizione dell'errore. + per ottenere una descrizione dell'errore. Si è rilevato che + <function>socket_last_error</function> riporta un codice di errore errato se si tenta + di eseguire il bind di un socket con un indirizzo errato + su sistemi Windows9x/ME. </para> <para> Vedere anche Index: phpdoc-it/reference/sockets/functions/socket-create.xml diff -u phpdoc-it/reference/sockets/functions/socket-create.xml:1.4 phpdoc-it/reference/sockets/functions/socket-create.xml:1.5 --- phpdoc-it/reference/sockets/functions/socket-create.xml:1.4 Mon Feb 24 15:45:01 2003 +++ phpdoc-it/reference/sockets/functions/socket-create.xml Mon May 5 15:52:46 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/sockets.xml, last change in rev 1.1 --> <!-- last change to 'socket-create' in en/ tree in rev 1.4 --> -<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: darvina Status: ready --> <!-- OLD-Revision: 1.34/EN.1.4 --> <refentry id="function.socket-create"> <refnamediv> @@ -41,7 +41,14 @@ <entry> Protocollo Internet basato su IPv4. TCP e UDP sono i protocolli più comuni di questa famiglia. - </entry> + </entry> + </row> + <row> + <entry>AF_INET6</entry> + <entry> + Protocolli basati su IPv6. TCP ed UDP sono i protocolli più comuni + di questa famiglia. Il supporto a questa famiglia è stato aggiunto in <literal>PHP 5.0</literal>. + </entry> </row> <row> <entry>AF_UNIX</entry> Index: phpdoc-it/reference/sockets/functions/socket-getpeername.xml diff -u phpdoc-it/reference/sockets/functions/socket-getpeername.xml:1.3 phpdoc-it/reference/sockets/functions/socket-getpeername.xml:1.4 --- phpdoc-it/reference/sockets/functions/socket-getpeername.xml:1.3 Sun Jun 2 08:53:48 2002 +++ phpdoc-it/reference/sockets/functions/socket-getpeername.xml Mon May 5 15:52:46 2003 @@ -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-getpeername' 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-getpeername"> <refnamediv> @@ -21,10 +21,10 @@ </methodsynopsis> &warn.experimental.func; <para> - Se il socket dato è di tipo <constant>AF_INET</constant>, + Se il socket dato è di tipo <constant>AF_INET</constant> oppure <constant>AF_INET6</constant>, <function>socket_getpeername</function> restituisce l'<emphasis>indirizzo IP</emphasis> - remoto nella notazione a quattro cifre con punto (ad esempio - <literal>127.0.0.1</literal>) nel parametro <parameter>indirizzo</parameter> + remoto nella notazione appropriata (ad esempio + <literal>127.0.0.1</literal> oppure <literal>fe80::1</literal>) nel parametro <parameter>indirizzo</parameter> e, se presente il parametro opzionale <parameter>porta</parameter>, anche la porta associata. </para> @@ -34,15 +34,24 @@ (ad esempio <literal>/var/run/daemon.sock</literal>) nel parametro <parameter>indirizzo</parameter>. </para> + <note> + <simpara> + La funzione <function>socket_getpeername</function> non dovrebbe essere usata con socket + <constant>AF_UNIX</constant> creati da <function>socket_accept</function>. + Soltanto i socket creati con <function>socket_connect</function> o un socket + server primario conseguente alla chiamata di <function>socket_bind</function> restituirà + dei valori significativi. + </simpara> + </note> <para> &return.success; <function>socket_getpeername</function> può anche restituire - &false; se il tipo di socket non è <constant>AF_INET</constant> o + &false; se il tipo di socket non è <constant>AF_INET</constant>, <constant>AF_INET6</constant> o <constant>AF_UNIX</constant>, in questo caso l'ultimo codice di errore del socket <emphasis>non</emphasis> viene aggiornato. </para> <para> Vedere anche - <function>socket_getpeername</function>, + <function>socket_getsockname</function>, <function>socket_last_error</function> e <function>socket_strerror</function>. </para> Index: phpdoc-it/reference/sockets/functions/socket-getsockname.xml diff -u phpdoc-it/reference/sockets/functions/socket-getsockname.xml:1.3 phpdoc-it/reference/sockets/functions/socket-getsockname.xml:1.4 --- phpdoc-it/reference/sockets/functions/socket-getsockname.xml:1.3 Sun Jun 2 08:54:19 2002 +++ phpdoc-it/reference/sockets/functions/socket-getsockname.xml Mon May 5 15:52:46 2003 @@ -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-getsockname' in en/ tree in rev 1.27 --> -<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready --> <!-- OLD-Revision: 1.34/EN.1.27 --> <refentry id="function.socket-getsockname"> <refnamediv> @@ -21,10 +21,10 @@ </methodsynopsis> &warn.experimental.func; <para> - Se il socket dato è di tipo <constant>AF_INET</constant>, + Se il socket dato è di tipo <constant>AF_INET</constant> oppure <constant>AF_INET6</constant>, <function>socket_getsockname</function> restituisce l'<emphasis>indirizzo IP</emphasis> - locale nella notazione a quattro cifre con punto (ad esempio - <literal>127.0.0.1</literal>) nel parametro <parameter>indirizzo</parameter> + locale nella notazione appropriata (ad esempio + <literal>127.0.0.1</literal> oppure <literal>fe80::1</literal>) nel parametro <parameter>indirizzo</parameter> e, se presente il parametro opzionale <parameter>porta</parameter>, anche la porta associata. </para> @@ -33,10 +33,19 @@ <function>socket_getsockname</function> restituirà un percorso Unix (ad esempio <literal>/var/run/daemon.sock</literal>) nel parametro <parameter>indirizzo</parameter>. - </para> + </para> + <note> + <simpara> + La funzione <function>socket_getsockname</function> non dovrebbe essere usata con socket + <constant>AF_UNIX</constant> creati da <function>socket_accept</function>. + Soltanto i socket creati con <function>socket_connect</function> o un socket + server primario conseguente alla chiamata di <function>socket_bind</function> restituirà + dei valori significativi. + </simpara> + </note> <para> &return.success; <function>socket_getsockname</function> può anche restituire - &false; se il tipo di socket non è <constant>AF_INET</constant> o + &false; se il tipo di socket non è <constant>AF_INET</constant>, <constant>AF_INET6</constant> o <constant>AF_UNIX</constant>, in questo caso l'ultimo codice di errore del socket <emphasis>non</emphasis> viene aggiornato. </para>