Receives multiple messages in a single call.
Synopsis
Declared in <folly/net/NetOps.h>
int
recvmmsg(
NetworkSocket s,
mmsghdr* msgvec,
unsigned int vlen,
unsigned int flags,
timespec* timeout);
Return Value
The number of messages received, or ‐1 on error.
Parameters
Name |
Description |
s |
The socket to receive from. |
msgvec |
The array of message headers to fill. |
vlen |
The number of entries in the array. |
flags |
Receive flags. |
timeout |
The timeout, or null to block. |
Created with MrDocs