diff options
Diffstat (limited to 'src/xpub.hpp')
-rw-r--r-- | src/xpub.hpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/xpub.hpp b/src/xpub.hpp index 19aa38a..48efd17 100644 --- a/src/xpub.hpp +++ b/src/xpub.hpp @@ -29,7 +29,9 @@ namespace zmq { - class xpub_t : public socket_base_t + class xpub_t : + public socket_base_t, + public i_pipe_events { public: @@ -37,8 +39,7 @@ namespace zmq ~xpub_t (); // Implementations of virtual 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 (); int xrecv (class msg_t *msg_, int flags_); @@ -46,6 +47,11 @@ namespace zmq 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_); |