cvs: phpdoc /en/reference/sockets/functions socket-sendto.xml

From: Date: Tue, 03 Jul 2007 00:48:19 +0000
Subject: cvs: phpdoc /en/reference/sockets/functions socket-sendto.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969376936@lists.php.net to get a copy of this message
nicobn Tue Jul 3 00:48:19 2007 UTC Modified files: /phpdoc/en/reference/sockets/functions socket-sendto.xml Log: Some corrections http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sockets/functions/socket-sendto.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc/en/reference/sockets/functions/socket-sendto.xml diff -u phpdoc/en/reference/sockets/functions/socket-sendto.xml:1.8 phpdoc/en/reference/sockets/functions/socket-sendto.xml:1.9 --- phpdoc/en/reference/sockets/functions/socket-sendto.xml:1.8 Wed Jun 20 22:25:25 2007 +++ phpdoc/en/reference/sockets/functions/socket-sendto.xml Tue Jul 3 00:48:19 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.socket-sendto"> <refnamediv> <refname>socket_sendto</refname> @@ -21,7 +21,7 @@ The function <function>socket_sendto</function> sends <parameter>len</parameter> bytes from <parameter>buf</parameter> through the socket <parameter>socket</parameter> to the - <parameter>port</parameter> at the address <parameter>addr</parameter> + <parameter>port</parameter> at the address <parameter>addr</parameter>. </para> </refsect1> @@ -33,6 +33,7 @@ <term><parameter>socket</parameter></term> <listitem> <para> + A valid socket ressource created using <function>socket_create</function>. </para> </listitem> </varlistentry> @@ -40,6 +41,7 @@ <term><parameter>buf</parameter></term> <listitem> <para> + The sent data will be taken from buffer <parameter>buf</parameter>. </para> </listitem> </varlistentry> @@ -47,6 +49,8 @@ <term><parameter>len</parameter></term> <listitem> <para> + <parameter>len</parameter> bytes from <parameter>buf</parameter> will be + sent. </para> </listitem> </varlistentry> @@ -61,31 +65,31 @@ <tgroup cols="2"> <tbody> <row> - <entry><literal>0x1</literal></entry> + <entry><constant>MSG_OOB</constant></entry> <entry> Process OOB (out-of-band) data. </entry> </row> <row> - <entry><literal>0x2</literal></entry> + <entry><constant>MSG_PEEK</constant></entry> <entry> Peek at incoming message. </entry> </row> <row> - <entry><literal>0x4</literal></entry> + <entry><constant>MSG_DONTROUTE</constant></entry> <entry> Bypass routing, use direct interface. </entry> </row> <row> - <entry><literal>0x8</literal></entry> + <entry><constant>MSG_EOR</constant></entry> <entry> Data completes record. </entry> </row> <row> - <entry><literal>0x100</literal></entry> + <entry><constant>MSG_EOF</constant></entry> <entry> Data completes transaction. </entry> @@ -100,6 +104,7 @@ <term><parameter>addr</parameter></term> <listitem> <para> + IP address of the remote host. </para> </listitem> </varlistentry> @@ -107,6 +112,8 @@ <term><parameter>port</parameter></term> <listitem> <para> + <parameter>port</parameter> is the remote port number at which the data + will be sent. </para> </listitem> </varlistentry> @@ -117,7 +124,8 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - + <function>socket_sendto</function> returns the number of bytes sent to the + remote host or -1 if an error occured. </para> </refsect1> @@ -152,7 +160,6 @@ <para> <simplelist> <member><function>socket_send</function></member> - <member><function>socket_sendmsg</function></member> </simplelist> </para> </refsect1>

« previous php.doc (#969376936) next »