note 61733 added to function.socket-recv
| From: | php-general at lists dot php dot net | Date: | Fri, 10 Feb 2006 13:22:18 +0000 |
| Subject: | note 61733 added to function.socket-recv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-103441@lists.php.net to get a copy of this message | ||
On the "mysterious" int flags, I here give you a copy of the explanation from a *NIX
manual:
The flags argument to a recv() call is formed by OR'ing one or more of the following
values:
MSG_OOB
This flag requests receipt of out-of-band data that would not be received in the
normal data stream. Some
protocols place expedited data at the head of the normal data queue, and thus this
flag cannot be used with
such protocols.
MSG_PEEK
This flag causes the receive operation to return data from the beginning of the
receive queue without
removing that data from the queue. Thus, a subsequent receive call will return the
same data.
MSG_WAITALL
This flag requests that the operation block until the full request is satisfied.
However, the call may
still return less data than requested if a signal is caught, an error or disconnect
occurs, or the next
data to be received is of a different type than that returned.
MSG_TRUNC
Return the real length of the packet, even when it was longer than the passed buffer.
Only valid for packet
sockets.
----
Server IP: 129.16.214.50
Probable Submitter: 213.89.140.71
----
Manual Page -- http://www.php.net/manual/en/function.socket-recv.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+61733
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61733&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61733&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61733&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61733&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61733&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61733&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61733&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+61733&report=yes
Search -- http://master.php.net/manage/user-notes.php