diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-04-16 07:47:00 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-04-17 07:34:37 +0200 |
commit | dc4ed5a7b59f1d5b4e4f7fb4b6e29ecaf5e6cc5c (patch) | |
tree | 29987586f7012a31c187de491edc99aea174473b /src/socket_base.hpp | |
parent | 443d06f894751062da6d69238ce09f6fbfc27577 (diff) |
XS_SURVEY_TIMEOUT socket option added.
It can be used to timeout the survey. Value is in milliseconds
and -1 means infinite (default).
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/socket_base.hpp')
-rw-r--r-- | src/socket_base.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/socket_base.hpp b/src/socket_base.hpp index 740fdde..9225ce7 100644 --- a/src/socket_base.hpp +++ b/src/socket_base.hpp @@ -119,6 +119,10 @@ namespace xs virtual bool xhas_in (); virtual int xrecv (xs::msg_t *msg_, int flags_); + // Allow derived classes to modify timeouts. + virtual int rcvtimeo (); + virtual int sndtimeo (); + // i_pipe_events will be forwarded to these functions. virtual void xread_activated (pipe_t *pipe_); virtual void xwrite_activated (pipe_t *pipe_); |