summaryrefslogtreecommitdiff
path: root/src/pgm_receiver.hpp
diff options
context:
space:
mode:
authorMartin Hurton <hurtonm@gmail.com>2010-03-02 09:02:40 +0100
committerMartin Hurton <hurtonm@gmail.com>2010-03-12 11:07:38 +0100
commitf9521c6b6a35103c03b742a311a34d7b04da0b84 (patch)
tree77d0bd5daa1a2b896c952fe3c20e0e17471bfee4 /src/pgm_receiver.hpp
parent61ee6fae536a8000be87b5aaf271f6519a3b7d3f (diff)
PGM: implement flow control
Diffstat (limited to 'src/pgm_receiver.hpp')
-rw-r--r--src/pgm_receiver.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pgm_receiver.hpp b/src/pgm_receiver.hpp
index dd9402f..becdfce 100644
--- a/src/pgm_receiver.hpp
+++ b/src/pgm_receiver.hpp
@@ -98,6 +98,15 @@ namespace zmq
// Parent session.
i_inout *inout;
+ // Most recently used decoder.
+ zmq_decoder_t *mru_decoder;
+
+ // Number of bytes not consumed by the decoder due to pipe overflow.
+ size_t pending_bytes;
+
+ // Pointer to data still waiting to be processed by the decoder.
+ unsigned char *pending_ptr;
+
// Poll handle associated with PGM socket.
handle_t socket_handle;