note 56161 added to function.socket-recv
| From: | rathamahata at rathamahata dot net | Date: | Thu, 25 Aug 2005 11:44:52 +0000 |
| Subject: | note 56161 added to function.socket-recv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-94179@lists.php.net to get a copy of this message | ||
It looks like that mysterious flags are just the recv(2) flags passed to your OS syscall and nothing
more...
ext/sockets/sockets.c:PHP_FUNCTION(socket_recv)
...
if ((retval = recv(php_sock->bsd_socket, recv_buf, len, flags)) < 1) {
efree(recv_buf);
...
for linux you can type `man 2 recv' and you will see complete description of thouse flags.
Sergey S. Kosrtyliov <rathamahata@rathamahata.net>
http://www.rathamahata.net/
----
Manual Page -- http://www.php.net/manual/en/function.socket-recv.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+56161
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56161&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56161&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56161&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56161&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56161&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56161&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+56161&report=yes
Search -- http://master.php.net/manage/user-notes.php