[PHP-DOC] cvs: phpdoc-it /reference/sockets/functions socket-bind.xml From: Andrioli Darvin (darvin.andrioli <email protected>)
Date: 06/02/02

darvina Sun Jun 2 08:39:18 2002 EDT

  Modified files:
    /phpdoc-it/reference/sockets/functions socket-bind.xml
  Log:
  Update to En 1.4
  
Index: phpdoc-it/reference/sockets/functions/socket-bind.xml
diff -u phpdoc-it/reference/sockets/functions/socket-bind.xml:1.2 phpdoc-it/reference/sockets/functions/socket-bind.xml:1.3
--- phpdoc-it/reference/sockets/functions/socket-bind.xml:1.2 Wed Apr 17 03:08:35 2002
+++ phpdoc-it/reference/sockets/functions/socket-bind.xml Sun Jun 2 08:39:18 2002
@@ -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.2 Maintainer: darvina Status: ready -->
+<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready -->
 <!-- OLD-Revision: 1.34/EN.1.3 -->
   <refentry id="function.socket-bind">
    <refnamediv>
@@ -11,20 +11,20 @@
    <refsect1>
     <title>Descrizione</title>
      <methodsynopsis>
- <type>int</type><methodname>socket_bind</methodname>
+ <type>bool</type><methodname>socket_bind</methodname>
       <methodparam><type>resource</type><parameter>socket</parameter></methodparam>
- <methodparam><type>string</type><parameter>address</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>port</parameter></methodparam>
+ <methodparam><type>string</type><parameter>indirizzo</parameter></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>porta</parameter></methodparam>
      </methodsynopsis>
- &warn.experimental.func;
+ &warn.experimental.func;
     <para>
      La funzione <function>socket_bind</function> esegue il bind del nome passato in
- <parameter>address</parameter> sul socket indicato da
- <parameter>socket</parameter>, che deve essere un descrittore valido
- creato da <function>socket_create</function>.
+ <parameter>indirizzo</parameter> sul socket indicato da
+ <parameter>socket</parameter>, che deve essere una risorsa valida
+ creata da <function>socket_create</function>.
     </para>
     <para>
- Il parametro <parameter>address</parameter> puņ essere sia
+ Il parametro <parameter>indirizzo</parameter> puņ essere sia
      un classico indirizzo IP (ad esempio
      <literal>127.0.0.1</literal>), se il socket appartiene alla famiglia
      <constant>AF_INET</constant>, sia il percorso di un socket
@@ -32,14 +32,15 @@
      <constant>AF_UNIX</constant>.
     </para>
     <para>
- Il parametro <parameter>port</parameter>, si utilizza soltanto
+ Il parametro <parameter>porta</parameter>, si utilizza soltanto
      con le connessioni tramite un socket di tipo <constant>AF_INET</constant>,
      ed indica quale porta sul server remoto si debba utilizzare
      per eseguire la connessione.
     </para>
     <para>
- La funzione restituisce zero se ha successo, oppure un codice di errore
- negativo su errore. Questo codice puņ essere passato alla funzione <function>socket_strerror</function>
+ &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.
     </para>
     <para>
@@ -47,7 +48,7 @@
      <function>socket_connect</function>,
      <function>socket_listen</function>,
      <function>socket_create</function>,
- <function>socket_get_status</function> e
+ <function>socket_last_error</function> e
      <function>socket_strerror</function>.
     </para>
    </refsect1>