From 61ee6fae536a8000be87b5aaf271f6519a3b7d3f Mon Sep 17 00:00:00 2001 From: Martin Hurton Date: Mon, 1 Mar 2010 10:13:26 +0100 Subject: Implement flow control This commit introduces the necessary changes necessary for implementing flow control. None of the socket types implements the flow control yet. The code will crash when the flow control is enabled and the thw lwm is reached. The following commits will add flow-control support for individual socket types. --- src/socket_base.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/socket_base.hpp') diff --git a/src/socket_base.hpp b/src/socket_base.hpp index 31c241b..bb40ae6 100644 --- a/src/socket_base.hpp +++ b/src/socket_base.hpp @@ -93,6 +93,7 @@ namespace zmq void detach_outpipe (class writer_t *pipe_); void kill (class reader_t *pipe_); void revive (class reader_t *pipe_); + void revive (class writer_t *pipe_); protected: @@ -106,6 +107,7 @@ namespace zmq virtual void xdetach_outpipe (class writer_t *pipe_) = 0; virtual void xkill (class reader_t *pipe_) = 0; virtual void xrevive (class reader_t *pipe_) = 0; + virtual void xrevive (class writer_t *pipe_) = 0; // Actual algorithms are to be defined by individual socket types. virtual int xsetsockopt (int option_, const void *optval_, -- cgit v1.2.3