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