mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-29 20:59:47 +01:00
I/O object hierarchy implemented
This commit is contained in:
@@ -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&);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user