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/rep.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/rep.hpp') diff --git a/src/rep.hpp b/src/rep.hpp index 51a49a9..3ec2b53 100644 --- a/src/rep.hpp +++ b/src/rep.hpp @@ -64,8 +64,13 @@ namespace zmq // Index of the next inbound pipe to read a request from. in_pipes_t::size_type current; - // If true, request was already received and reply wasn't sent yet. - bool waiting_for_reply; + // If true, request was already received and reply wasn't completely + // sent yet. + bool sending_reply; + + // True, if message processed at the moment (either sent or received) + // is processed only partially. + bool tbc; // Pipe we are going to send reply to. class writer_t *reply_pipe; -- cgit v1.2.3