mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-29 20:59:47 +01:00
ZMQII-18: Implement I/O multiplexing (first approximation)
This commit is contained in:
13
src/req.cpp
13
src/req.cpp
@@ -195,4 +195,17 @@ int zmq::req_t::xrecv (zmq_msg_t *msg_, int flags_)
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool zmq::req_t::xhas_in ()
|
||||
{
|
||||
if (reply_pipe->check_read ())
|
||||
return waiting_for_reply;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool zmq::req_t::xhas_out ()
|
||||
{
|
||||
return !waiting_for_reply;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user