Skip to content
Snippets Groups Projects
Commit 2ac6ff8b authored by Alexander van Amesfoort's avatar Alexander van Amesfoort
Browse files

Task #7519: constify recvmmsg (for APERTIF)

parent fb5bd8bd
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ class SocketStream : public FileDescriptorBasedStream
* Returns the number of messages received if ok, or throws on syscall error
*/
unsigned recvmmsg( void *bufBase, unsigned maxMsgSize,
std::vector<unsigned> &recvdMsgSizes );
std::vector<unsigned> &recvdMsgSizes ) const;
// Allow individual recv()/send() calls to last for 'timeout' seconds before returning EWOULDBLOCK
void setTimeout(double timeout);
......
......@@ -311,7 +311,7 @@ struct mmsghdr {
#endif
unsigned SocketStream::recvmmsg( void *bufBase, unsigned maxMsgSize,
std::vector<unsigned> &recvdMsgSizes )
std::vector<unsigned> &recvdMsgSizes ) const
{
ASSERT(protocol == UDP);
ASSERT(mode == Server);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment