From f2ff2c6e5c4e244dea28e1ac6ec3f886b7ebc356 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Wed, 30 Sep 2009 10:08:35 +0200 Subject: checking for available messages added to ypipe/pipe --- src/pipe.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/pipe.hpp') diff --git a/src/pipe.hpp b/src/pipe.hpp index 699e3f7..ecbce7d 100644 --- a/src/pipe.hpp +++ b/src/pipe.hpp @@ -42,6 +42,9 @@ namespace zmq void set_endpoint (i_endpoint *endpoint_); + // Returns true if there is at least one message to read in the pipe. + bool check_read (); + // Reads a message to the underlying pipe. bool read (zmq_msg_t *msg_); -- cgit v1.2.3