From 06538fc11790a0cf895c43d137a33febf97f3a28 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sat, 27 Mar 2010 14:24:57 +0100 Subject: multi-part messages work with REQ/REP sockets --- src/req.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/req.hpp') 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; -- cgit v1.2.3