#27211 [Asn->Csd]: stream_socket_accept() returns Invalid argument
| From: | nlopess@php.net | Date: | Sat, 31 Jul 2004 11:48:46 +0000 |
| Subject: | #27211 [Asn->Csd]: stream_socket_accept() returns Invalid argument | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969362409@lists.php.net to get a copy of this message | ||
ID: 27211
Updated by: nlopess@php.net
Reported By: glox at glox dot be
-Status: Assigned
+Status: Closed
Bug Type: Documentation problem
Operating System: *
PHP Version: 5CVS-2004-02-12
Assigned To: nlopess
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2004-06-03 19:53:37] nlopess@php.net
I had no time to fix this yet, but you should use something like:
$srv = stream_socket_server("udp://127.0.0.1:13");
do {
$pkt = stream_socket_recvfrom($srv, 1, 0, $peer);
stream_socket_sendto($srv, date("D M j H:i:s Y\r\n"), 0, $peer);
} while ($pkt !== false);
------------------------------------------------------------------------
[2004-06-02 22:28:50] flugelaar at pandora dot be
Is there news about this bug?
------------------------------------------------------------------------
[2004-04-30 13:53:39] i_kobayashi at rnk dot co dot jp
In communication by udp, it is not accept() but recvfrom(). However,
since there is no means to acquire an address and a port from
stream_socket_recvfrom(), a reply cannot be returned. Are there any of
other means?
------------------------------------------------------------------------
[2004-03-15 10:27:04] nlopess@php.net
Shame on me, but I've lost the e-mails I've exchanged with Wez (my ISP
fault).
I don't remeber very well how to reproduce the crash :(
Wez sent me some examples to fix the ones that are currently in the
docs, but I've lost them... :-(
------------------------------------------------------------------------
[2004-03-15 10:20:55] sniper@php.net
Assigning to Nuno. (Please report the possible crash in different
report if you haven't done it already)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/27211
--
Edit this bug report at http://bugs.php.net/?id=27211&edit=1