mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
socket_read: fix prototype, documentation
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@66674 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
b58d08059d
commit
2e5ba5800c
1 changed files with 4 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.27 $ -->
|
||||
<!-- $Revision: 1.28 $ -->
|
||||
<reference id="ref.sockets">
|
||||
<title>Socket functions</title>
|
||||
<titleabbrev>Sockets</titleabbrev>
|
||||
|
@ -419,7 +419,6 @@ echo "OK.\n\n";
|
|||
<funcprototype>
|
||||
<funcdef>int <function>socket_read</function></funcdef>
|
||||
<paramdef>resource <parameter>socket_des</parameter></paramdef>
|
||||
<paramdef>string <parameter>buffer</parameter></paramdef>
|
||||
<paramdef>int <parameter>length</parameter></paramdef>
|
||||
<paramdef>int <parameter><optional>type</optional></parameter></paramdef>
|
||||
</funcprototype>
|
||||
|
@ -427,11 +426,10 @@ echo "OK.\n\n";
|
|||
&warn.experimental.func;
|
||||
<para>
|
||||
The function <function>socket_read</function> reads from socket
|
||||
<parameter>socket_des</parameter>created by the
|
||||
<function>socket_accept</function> function into
|
||||
<parameter>buffer</parameter> the number of bytes set by
|
||||
<parameter>socket_des</parameter> created by the
|
||||
<function>socket_accept</function> function 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.
|
||||
end reading. Returns the bytes that were read.
|
||||
</para>
|
||||
<para>
|
||||
Optional <parameter>type</parameter> parameter is a named constant:
|
||||
|
|
Loading…
Reference in a new issue