cvs: phpdoc /en/functions sockets.xml
| From: | Ron Chmara | Date: | Thu, 02 Nov 2000 08:14:12 +0000 |
| Subject: | cvs: phpdoc /en/functions sockets.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969332763@lists.php.net to get a copy of this message | ||
ronabop Thu Nov 2 00:14:12 2000 EDT
Modified files:
/phpdoc/en/functions sockets.xml
Log:
adding functions
Index: phpdoc/en/functions/sockets.xml
diff -u phpdoc/en/functions/sockets.xml:1.7 phpdoc/en/functions/sockets.xml:1.8
--- phpdoc/en/functions/sockets.xml:1.7 Sun Oct 1 16:57:30 2000
+++ phpdoc/en/functions/sockets.xml Thu Nov 2 00:14:12 2000
@@ -397,6 +397,42 @@
</refsect1>
</refentry>
+ <refentry id="function.read">
+ <refnamediv>
+ <refname>read</refname>
+ <refpurpose>Read from a socket</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>int <function>read</function></funcdef>
+ <paramdef>int <parameter>socket_des</parameter></paramdef>
+ <paramdef>string <parameter>&buffer</parameter></paramdef>
+ <paramdef>int <parameter>length</parameter></paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ The function <function>read</function> reads from socket
+ <parameter>socket_des</parameter>created by the
+ <function>accept_connect</function> function into
+ <parameter>&buffer</parameter> the number of bytes set by
+ <parameter>length</parameter>. Otherwise you can use \n, \t or \0 to
+ end reading. Returns number of bytes that have been read.
+ </para>
+ <para>
+ See also
+ <function>accept_connect</function>,
+ <function>bind</function>,
+ <function>connect</function>,
+ <function>listen</function>,
+ <function>strerror</function>,
+ <function>socket_get_status</function>. and
+ <function>write</function>.
+ </para>
+ </refsect1>
+ </refentry>
+
<refentry id="function.socket">
<refnamediv>
<refname>socket</refname>
@@ -508,6 +544,40 @@
<function>connect</function>,
<function>listen</function>,
<function>socket</function>, and
+ <function>socket_get_status</function>.
+ </para>
+ </refsect1>
+ </refentry>
+
+ <refentry id="function.write">
+ <refnamediv>
+ <refname>write</refname>
+ <refpurpose>Write to a socket</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>int <function>write</function></funcdef>
+ <paramdef>int <parameter>socket_des</parameter></paramdef>
+ <paramdef>string <parameter>&buffer</parameter></paramdef>
+ <paramdef>int <parameter>length</parameter></paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ The function <function>write</function> writes to the socket
+ <parameter>socket_des</parameter> from
+ <parameter>&buffer</parameter> the number of bytes set by
+ <parameter>length</parameter>.
+ </para>
+ <para>
+ See also
+ <function>accept_connect</function>,
+ <function>bind</function>,
+ <function>connect</function>,
+ <function>listen</function>,
+ <function>read</function>,
+ <function>strerror</function>, and
<function>socket_get_status</function>.
</para>
</refsect1>