note 61733 deleted from function.socket-recv by torben

From: Date: Tue, 22 Sep 2009 01:56:21 +0000
Subject: note 61733 deleted from function.socket-recv by torben
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-160911@lists.php.net to get a copy of this message
Note Submitter: ---- 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.

« previous php.notes (#160911) next »