diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-10-16 10:53:29 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-10-16 10:53:29 +0200 |
commit | 0a03e86e9547fa7c221b316a5a943467adea3dfd (patch) | |
tree | f47b0cd7d3c91c59de419506f8d66c27e327e41c /src/object.hpp | |
parent | a1474e305762d32df2b79300d124aac7fa0181c8 (diff) |
ZMQ_LINGER socket option added.
1. ZMQ_LINGER option can be set/get
2. options are part of own_t base class rather than being declared
separately by individual objects
3. Linger option is propagated with "term" command so that the
newest value of it is used rather than the stored old one.
4. Session sets the linger timer if needed and terminates
as soon as it expires.
5. Corresponding documentation updated.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/object.hpp')
-rw-r--r-- | src/object.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object.hpp b/src/object.hpp index bc1b325..9580556 100644 --- a/src/object.hpp +++ b/src/object.hpp @@ -80,7 +80,7 @@ namespace zmq void send_pipe_term_ack (class reader_t *destination_); void send_term_req (class own_t *destination_, class own_t *object_); - void send_term (class own_t *destination_); + void send_term (class own_t *destination_, int linger_); void send_term_ack (class own_t *destination_); // These handlers can be overloaded by the derived objects. They are @@ -97,7 +97,7 @@ namespace zmq virtual void process_pipe_term (); virtual void process_pipe_term_ack (); virtual void process_term_req (class own_t *object_); - virtual void process_term (); + virtual void process_term (int linger_); virtual void process_term_ack (); // Special handler called after a command that requires a seqnum |