From 2ac6ff8be944ca945b0e9fe3b8d6e00b80180977 Mon Sep 17 00:00:00 2001 From: Alexander van Amesfoort <amesfoort@astron.nl> Date: Wed, 11 Mar 2015 00:51:22 +0000 Subject: [PATCH] Task #7519: constify recvmmsg (for APERTIF) --- LCS/Stream/include/Stream/SocketStream.h | 2 +- LCS/Stream/src/SocketStream.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LCS/Stream/include/Stream/SocketStream.h b/LCS/Stream/include/Stream/SocketStream.h index b9eb71c77d8..c6834cc6278 100644 --- a/LCS/Stream/include/Stream/SocketStream.h +++ b/LCS/Stream/include/Stream/SocketStream.h @@ -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); diff --git a/LCS/Stream/src/SocketStream.cc b/LCS/Stream/src/SocketStream.cc index 8acf9fd9aa3..cb8f43186f8 100644 --- a/LCS/Stream/src/SocketStream.cc +++ b/LCS/Stream/src/SocketStream.cc @@ -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); -- GitLab