summaryrefslogtreecommitdiff
path: root/src/dist.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dist.hpp')
-rw-r--r--src/dist.hpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/dist.hpp b/src/dist.hpp
index fd522b9..c137332 100644
--- a/src/dist.hpp
+++ b/src/dist.hpp
@@ -31,33 +31,32 @@ namespace zmq
// Class manages a set of outbound pipes. It sends each messages to
// each of them.
- class dist_t : public i_writer_events
+ class dist_t
{
public:
dist_t (class own_t *sink_);
~dist_t ();
- void attach (writer_t *pipe_);
+ void attach (class pipe_t *pipe_);
void terminate ();
int send (class msg_t *msg_, int flags_);
bool has_out ();
- // i_writer_events interface implementation.
- void activated (writer_t *pipe_);
- void terminated (writer_t *pipe_);
+ void activated (class pipe_t *pipe_);
+ void terminated (class pipe_t *pipe_);
private:
// Write the message to the pipe. Make the pipe inactive if writing
// fails. In such a case false is returned.
- bool write (class writer_t *pipe_, class msg_t *msg_);
+ bool write (class pipe_t *pipe_, class msg_t *msg_);
// Put the message to all active pipes.
void distribute (class msg_t *msg_, int flags_);
// List of outbound pipes.
- typedef array_t <class writer_t> pipes_t;
+ typedef array_t <class pipe_t, 2> pipes_t;
pipes_t pipes;
// Number of active pipes. All the active pipes are located at the