diff options
Diffstat (limited to 'src/push.hpp')
-rw-r--r-- | src/push.hpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/push.hpp b/src/push.hpp index c4d63f6..67763eb 100644 --- a/src/push.hpp +++ b/src/push.hpp @@ -22,12 +22,15 @@ #define __ZMQ_PUSH_HPP_INCLUDED__ #include "socket_base.hpp" +#include "pipe.hpp" #include "lb.hpp" namespace zmq { - class push_t : public socket_base_t + class push_t : + public socket_base_t, + public i_pipe_events { public: @@ -37,13 +40,17 @@ namespace zmq protected: // Overloads of functions from socket_base_t. - void xattach_pipes (class reader_t *inpipe_, class writer_t *outpipe_, - const blob_t &peer_identity_); + void xattach_pipe (class pipe_t *pipe_, const blob_t &peer_identity_); int xsend (class msg_t *msg_, int flags_); bool xhas_out (); private: + // i_pipe_events interface implementation. + void read_activated (pipe_t *pipe_); + void write_activated (pipe_t *pipe_); + void terminated (pipe_t *pipe_); + // Hook into the termination process. void process_term (int linger_); |