summaryrefslogtreecommitdiff
path: root/src/pipe.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-03-09 08:43:20 +0100
committerMartin Sustrik <sustrik@250bpm.com>2010-03-09 08:43:20 +0100
commite04e2cdbbaf351eb04164bdcd293fcb8fa22a9a4 (patch)
tree419a8ff7db0495de57716d4595dc3d235c6ad6f6 /src/pipe.hpp
parent9481c69b0f60068f12aa26699588fed6a8faceec (diff)
rollback functionality added to pipe
Diffstat (limited to 'src/pipe.hpp')
-rw-r--r--src/pipe.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pipe.hpp b/src/pipe.hpp
index a155e95..771081c 100644
--- a/src/pipe.hpp
+++ b/src/pipe.hpp
@@ -100,6 +100,9 @@ namespace zmq
// message cannot be written because high watermark was reached.
bool write (zmq_msg_t *msg_);
+ // Remove any unflushed messages from the pipe.
+ void rollback ();
+
// Flush the messages downsteam.
void flush ();