svn: /phpdoc/en/trunk/reference/sockets/functions/ socket-recvfrom.xml
| From: | Torben Wilson | Date: | Mon, 14 Sep 2009 09:10:23 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/sockets/functions/ socket-recvfrom.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-4922@lists.php.net to get a copy of this message | ||
torben Mon, 14 Sep 2009 09:10:23 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=288317
Log:
One typo fix and one fact fix.
Changed paths:
U phpdoc/en/trunk/reference/sockets/functions/socket-recvfrom.xml
Modified: phpdoc/en/trunk/reference/sockets/functions/socket-recvfrom.xml
===================================================================
--- phpdoc/en/trunk/reference/sockets/functions/socket-recvfrom.xml 2009-09-14 09:09:50 UTC (rev
288316)
+++ phpdoc/en/trunk/reference/sockets/functions/socket-recvfrom.xml 2009-09-14 09:10:23 UTC (rev
288317)
@@ -157,7 +157,7 @@
&reftitle.returnvalues;
<para>
<function>socket_recvfrom</function> returns the number of bytes received,
- or -1 if there was an error. The actual error code can be retrieved by
+ or &false; if there was an error. The actual error code can be retrieved by
calling <function>socket_last_error</function>. This error code may be
passed to <function>socket_strerror</function> to get a textual explanation
of the error.
@@ -177,7 +177,7 @@
$socket = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
socket_bind($socket, '127.0.0.1', 1223);
-$from = "";
+$from = '';
$port = 0;
socket_recvfrom($socket, $buf, 12, 0, $from, $port);
@@ -186,8 +186,8 @@
]]>
</programlisting>
<para>
- This example will initiate an UDP socket on port 1223 of 127.0.0.1 and
- print at most 12 characters received from a remote host.
+ This example will initiate a UDP socket on port 1223 of 127.0.0.1
+ and print at most 12 characters received from a remote host.
</para>
</example>
</para>