checking for available messages added to ypipe/pipe

This commit is contained in:
Martin Sustrik
2009-09-30 10:08:35 +02:00
parent 84d854a088
commit f2ff2c6e5c
3 changed files with 30 additions and 8 deletions

View File

@@ -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_);