cortesi Thu Feb 21 19:57:19 2002 EDT Modified files: /phpdoc/it/functions network.xml Log: finished translation
Index: phpdoc/it/functions/network.xml diff -u phpdoc/it/functions/network.xml:1.15 phpdoc/it/functions/network.xml:1.16 --- phpdoc/it/functions/network.xml:1.15 Wed Feb 20 19:19:26 2002 +++ phpdoc/it/functions/network.xml Thu Feb 21 19:57:18 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.58 Maintainer: cortesi Status: working --> +<!-- EN-Revision: 1.58 Maintainer: cortesi Status: ready --> <!-- CREDITS: valente --> <reference id="ref.network"> <title>Funzioni di rete</title> @@ -775,27 +775,27 @@ <refentry id="function.socket-set-blocking"> <refnamediv> <refname>socket_set_blocking</refname> - <refpurpose>Set blocking/non-blocking mode on a socket</refpurpose> + <refpurpose>Imposta un socket in modalitā blocking/non-blocking</refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>int</type><methodname>socket_set_blocking</methodname> - <methodparam><type>int</type><parameter>socket descriptor</parameter></methodparam> - <methodparam><type>int</type><parameter>mode</parameter></methodparam> + <methodparam><type>int</type><parameter>descrittore del +socket</parameter></methodparam> + <methodparam><type>int</type><parameter>modo</parameter></methodparam> </methodsynopsis> <para> - If <parameter>mode</parameter> is &false;, the given socket - descriptor will be switched to non-blocking mode, and if &true;, it - will be switched to blocking mode. This affects calls like - <function>fgets</function> that read from the socket. In - non-blocking mode an <function>fgets</function> call will always - return right away while in blocking mode it will wait for data to - become available on the socket. + Se <parameter>modo</parameter> č &false;, il dato descrittore del socket + verrā cambiato in modalitā non-blocking e se &true;, verrā + cambiato in modalitā blocking. Questo ha effetti su chiamate tipo quelle di + <function>fgets</function> che leggono dirttamente dal socket. In modo + non-blocking una chiamata a <function>fgets</function> restituirā sempre + subito i dati, mentre in modalitā blocking, essa attenderā che i dati siano + disponibili nel socket. </para> <para> - This function was previously called as - <function>set_socket_blocking</function> but this usage is deprecated. + Questa funzione era precedentemente chiamata + <function>set_socket_blocking</function>, ma questo uso č deprecato. </para> </refsect1> </refentry> @@ -803,28 +803,28 @@ <refentry id="function.socket-set-timeout"> <refnamediv> <refname>socket_set_timeout</refname> - <refpurpose>Set timeout period on a socket</refpurpose> + <refpurpose>Imposta il tempo di timeout per un socket</refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>bool</type><methodname>socket_set_timeout</methodname> - <methodparam><type>int</type><parameter>socket descriptor</parameter></methodparam> - <methodparam><type>int</type><parameter>seconds</parameter></methodparam> - <methodparam><type>int</type><parameter>microseconds</parameter></methodparam> + <methodparam><type>int</type><parameter>descrittore +socket</parameter></methodparam> + <methodparam><type>int</type><parameter>secondi</parameter></methodparam> + <methodparam><type>int</type><parameter>microsecondi</parameter></methodparam> </methodsynopsis> <para> - Sets the timeout value on <parameter>socket descriptor</parameter>, - expressed in the sum of <parameter>seconds</parameter> and - <parameter>microseconds</parameter>. + Imposta il valore di timeout per un <parameter>descrittore socket</parameter>, + espresso come la somma di <parameter>secondi</parameter> e + <parameter>microsecondi</parameter>. <example> - <title><function>socket_set_timeout</function> Example</title> + <title>Esempio di <function>socket_set_timeout</function></title> <programlisting role="php"> <![CDATA[ <?php $fp = fsockopen("www.php.net", 80); if(!$fp) { - echo "Unable to open\n"; + echo "Impossibile aprire\n"; } else { fputs($fp,"GET / HTTP/1.0\n\n"); $start = time(); @@ -840,11 +840,11 @@ </example> </para> <para> - This function was previously called as - <function>set_socket_timeout</function> but this usage is deprecated. + Questa funzione era precedentemente chiamata + <function>set_socket_timeout</function>, ma questo uso č deprecato. </para> <para> - Vedere anche: <function>fsockopen</function> and <function>fopen</function>. + Vedere anche: <function>fsockopen</function> e <function>fopen</function>. </para> </refsect1> </refentry> @@ -852,67 +852,67 @@ <refentry id="function.syslog"> <refnamediv> <refname>syslog</refname> - <refpurpose>Generate a system log message</refpurpose> + <refpurpose>Genera un messaggio del system log</refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>int</type><methodname>syslog</methodname> - <methodparam><type>int</type><parameter>priority</parameter></methodparam> - <methodparam><type>string</type><parameter>message</parameter></methodparam> + <methodparam><type>int</type><parameter>prioritā</parameter></methodparam> + <methodparam><type>string</type><parameter>messaggio</parameter></methodparam> </methodsynopsis> <para> - <function>syslog</function> generates a log message that will be - distributed by the system logger. - <parameter>priority</parameter> is a combination of the facility - and the level, values for which are given in the next section. - The remaining argument is the message to send, except that the - two characters <literal>%m</literal> will be replaced by the - error message string (strerror) corresponding to the present - value of <errortype>errno</errortype>. + <function>syslog</function> genera un messaggio di log che viene distribuito dal + logger di sistema. + <parameter>prioritā</parameter> č la combinazione della facility + e del livello, valori utilizzabili sono riportati nella prossima sezione. + L'argomento rimanente č il messaggio da inviare, eccetto i + due caratteri <literal>%m</literal> che vengono sostituiti dalla + stringa del messaggio di errore (strerror) corrispondente all'attuale + valore di <errortype>errno</errortype>. </para> <para> <table> - <title><function>syslog</function> Priorities (in descending order)</title> + <title>Prioritā <function>syslog</function> (in ordine discendente)</title> <tgroup cols="2"> <thead> <row> - <entry>Constant</entry> - <entry>Description</entry> + <entry>Costante</entry> + <entry>Descrizione</entry> </row> </thead> <tbody> <row> <entry>LOG_EMERG</entry> - <entry>system is unusable</entry> + <entry>sistema non utilizzabile</entry> </row> <row> <entry>LOG_ALERT</entry> - <entry>action must be taken immediately</entry> + <entry>azione da intraprendere immediatamente</entry> </row> <row> <entry>LOG_CRIT</entry> - <entry>critical conditions</entry> + <entry>condizioni critiche</entry> </row> <row> <entry>LOG_ERR</entry> - <entry>error conditions</entry> + <entry>condizioni di errore</entry> </row> <row> <entry>LOG_WARNING</entry> - <entry>warning conditions</entry> + <entry>condizioni di attenzione</entry> </row> <row> <entry>LOG_NOTICE</entry> - <entry>normal, but significant, condition</entry> + <entry>condizione normale, ma significativa</entry> </row> <row> <entry>LOG_INFO</entry> - <entry>informational message</entry> + <entry>messaggio di informazione</entry> </row> <row> <entry>LOG_DEBUG</entry> - <entry>debug-level message</entry> + <entry>messaggio a livello di debug</entry> </row> </tbody> </tgroup> @@ -920,25 +920,25 @@ </para> <para> <example> - <title>Using <function>syslog</function></title> + <title>Uso di <function>syslog</function></title> <programlisting role="php"> <![CDATA[ <?php define_syslog_variables(); -// open syslog, include the process ID and also send -// the log to standard error, and use a user defined -// logging mechanism -openlog("myScripLog", LOG_PID | LOG_PERROR, LOG_LOCAL0); +// apre il syslog, include l'ID del processo, invia il +// log anche su standard error e fa uso di un meccanismo +// di logging defiito dall'utente +openlog("IlMioLog", LOG_PID | LOG_PERROR, LOG_LOCAL0); -// some code +// un po' di codice -if (authorized_client()) { - // do something +if (client_autorizzato()) { + // fa qualcosa } else { - // unauthorized client! - // log the attempt - $access = date("Y/m/d H:i:s"); - syslog(LOG_WARNING,"Unauthorized client: $access $REMOTE_ADDR ($HTTP_USER_AGENT)"); + // client non autorizzato! + // logga il tentativo + $accesso = date("Y/m/d H:i:s"); + syslog(LOG_WARNING,"Client non autorizzato: $accesso $REMOTE_ADDR +($HTTP_USER_AGENT)"); } closelog(); @@ -946,20 +946,20 @@ ]]> </programlisting> </example> - For information on setting up a user defined log handler, see the + Per informazioni su come creare un gestore di log definito dall'utente, fare +riferimento alla man page <citerefentry><refentrytitle>syslog.conf</refentrytitle> - <manvolnum>5</manvolnum></citerefentry> Unix manual page. More - information on the syslog facilities and option can be found in the man - pages for <citerefentry><refentrytitle>syslog</refentrytitle> - <manvolnum>3</manvolnum></citerefentry> on Unix machines. + <manvolnum>5</manvolnum></citerefentry> di Unix. Ulteriori + informazioni sulle facility di syslog e sulle sue opzioni possono essere trovate +sulle macchine Unix nelle man page + di <citerefentry><refentrytitle>syslog</refentrytitle> + <manvolnum>3</manvolnum></citerefentry>. </para> <para> - On Windows NT, the syslog service is emulated using the Event + Su Windows NT, il servizio syslog č emulato usando Event Log. </para> <para> Vedere anche <function>define_syslog_variables</function>, - <function>openlog</function> and + <function>openlog</function> e <function>closelog</function>. </para> </refsect1>