X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/9936cb5ae7eaf8907cbff5722b206087b18053ca..0e9987fcef822119e3218d14328eb39977525662:/communicator.h?ds=inline diff --git a/communicator.h b/communicator.h index ce74f07..f9d096a 100644 --- a/communicator.h +++ b/communicator.h @@ -24,7 +24,9 @@ public: // Try to get a message. Returns true on success. // Parameter "timeout" may be 0 for non-blocking operation, -1 for // infinite waiting, or any positive timeout. - bool recv(message*& msg, m_host_t& from, double timeout); + bool recv(message*& msg, m_host_t& from, double timeout) { + return received.pop(msg, from, timeout); + } private: // Myself