diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-03-27 14:24:57 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-03-27 14:24:57 +0100 |
commit | 06538fc11790a0cf895c43d137a33febf97f3a28 (patch) | |
tree | 5188e6054c8075561297d8bba9e4b29fc6e98475 /src/req.hpp | |
parent | bbfac783f91f6692b7f9c0aa5392ac955f7b49bf (diff) |
multi-part messages work with REQ/REP sockets
Diffstat (limited to 'src/req.hpp')
-rw-r--r-- | src/req.hpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/req.hpp b/src/req.hpp index d3e12b5..93dc745 100644 --- a/src/req.hpp +++ b/src/req.hpp @@ -70,12 +70,17 @@ namespace zmq // that's processing the request at the moment. out_pipes_t::size_type current; - // If true, request was already sent and reply wasn't received yet. - bool waiting_for_reply; + // If true, request was already sent and reply wasn't received yet or + // was raceived partially. + bool receiving_reply; // True, if read can be attempted from the reply pipe. bool reply_pipe_active; + // True, if message processed at the moment (either sent or received) + // is processed only partially. + bool tbc; + // Pipe we are awaiting the reply from. class reader_t *reply_pipe; |