summaryrefslogtreecommitdiff
path: root/src/pgm_sender.hpp
diff options
context:
space:
mode:
authorSteven McCoy <steven.mccoy@miru.hk>2010-09-28 22:46:56 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-09-30 09:11:51 +0200
commitd14be62499478f31cf641399982ecdf4f6f158c4 (patch)
tree5e9e3d5b5097c1a5942180d0bf9c20569c8e3797 /src/pgm_sender.hpp
parent96d85b20982926e60d5065cba3203971c9eeed63 (diff)
more fixes to (e)pgm transport
Diffstat (limited to 'src/pgm_sender.hpp')
-rw-r--r--src/pgm_sender.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pgm_sender.hpp b/src/pgm_sender.hpp
index bee416c..6d3ae31 100644
--- a/src/pgm_sender.hpp
+++ b/src/pgm_sender.hpp
@@ -58,9 +58,16 @@ namespace zmq
// i_poll_events interface implementation.
void in_event ();
void out_event ();
+ void timer_event (int token);
private:
+ // TX and RX timeout timer ID's.
+ enum {tx_timer_id = 0xa0, rx_timer_id = 0xa1};
+
+ // Timers are running.
+ bool has_tx_timer, has_rx_timer;
+
// Message encoder.
encoder_t encoder;