I/O object hierarchy implemented

This commit is contained in:
Martin Sustrik
2010-08-11 14:09:56 +02:00
parent ee1f1af009
commit d13933bc62
51 changed files with 1441 additions and 994 deletions

View File

@@ -37,8 +37,6 @@ namespace zmq
// 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 xterm_pipes ();
bool xhas_pipes ();
int xsend (zmq_msg_t *msg_, int flags_);
bool xhas_out ();
@@ -48,6 +46,9 @@ namespace zmq
private:
// Hook into the termination process.
void process_term ();
// 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_, zmq_msg_t *msg_);
@@ -60,6 +61,9 @@ namespace zmq
// beginning of the pipes array.
pipes_t::size_type active;
// True if termination process is already underway.
bool terminating;
pub_t (const pub_t&);
void operator = (const pub_t&);
};