mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-17 00:23:58 +00:00
Fix some comments regarding method overriding
This commit is contained in:
parent
60d6b89c5e
commit
a80fb34765
@ -44,7 +44,7 @@ namespace zmq
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
// Overloads of functions from socket_base_t.
|
// Overrides of functions from socket_base_t.
|
||||||
void xattach_pipe (zmq::pipe_t *pipe_, bool subscribe_to_all_);
|
void xattach_pipe (zmq::pipe_t *pipe_, bool subscribe_to_all_);
|
||||||
int xsetsockopt (int option_, const void *optval_, size_t optvallen_);
|
int xsetsockopt (int option_, const void *optval_, size_t optvallen_);
|
||||||
int xsend (zmq::msg_t *msg_);
|
int xsend (zmq::msg_t *msg_);
|
||||||
|
@ -95,7 +95,7 @@ namespace zmq
|
|||||||
void send_reaped ();
|
void send_reaped ();
|
||||||
void send_done ();
|
void send_done ();
|
||||||
|
|
||||||
// These handlers can be overloaded by the derived objects. They are
|
// These handlers can be overrided by the derived objects. They are
|
||||||
// called when command arrives from another thread.
|
// called when command arrives from another thread.
|
||||||
virtual void process_stop ();
|
virtual void process_stop ();
|
||||||
virtual void process_plug ();
|
virtual void process_plug ();
|
||||||
|
@ -39,7 +39,7 @@ namespace zmq
|
|||||||
pair_t (zmq::ctx_t *parent_, uint32_t tid_, int sid);
|
pair_t (zmq::ctx_t *parent_, uint32_t tid_, int sid);
|
||||||
~pair_t ();
|
~pair_t ();
|
||||||
|
|
||||||
// Overloads of functions from socket_base_t.
|
// Overrides of functions from socket_base_t.
|
||||||
void xattach_pipe (zmq::pipe_t *pipe_, bool subscribe_to_all_);
|
void xattach_pipe (zmq::pipe_t *pipe_, bool subscribe_to_all_);
|
||||||
int xsend (zmq::msg_t *msg_);
|
int xsend (zmq::msg_t *msg_);
|
||||||
int xrecv (zmq::msg_t *msg_);
|
int xrecv (zmq::msg_t *msg_);
|
||||||
|
@ -42,7 +42,7 @@ namespace zmq
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
// Overloads of functions from socket_base_t.
|
// Overrides of functions from socket_base_t.
|
||||||
void xattach_pipe (zmq::pipe_t *pipe_, bool subscribe_to_all_);
|
void xattach_pipe (zmq::pipe_t *pipe_, bool subscribe_to_all_);
|
||||||
int xrecv (zmq::msg_t *msg_);
|
int xrecv (zmq::msg_t *msg_);
|
||||||
bool xhas_in ();
|
bool xhas_in ();
|
||||||
|
@ -42,7 +42,7 @@ namespace zmq
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
// Overloads of functions from socket_base_t.
|
// Overrides of functions from socket_base_t.
|
||||||
void xattach_pipe (zmq::pipe_t *pipe_, bool subscribe_to_all_);
|
void xattach_pipe (zmq::pipe_t *pipe_, bool subscribe_to_all_);
|
||||||
int xsend (zmq::msg_t *msg_);
|
int xsend (zmq::msg_t *msg_);
|
||||||
bool xhas_out ();
|
bool xhas_out ();
|
||||||
|
@ -37,7 +37,7 @@ namespace zmq
|
|||||||
rep_t (zmq::ctx_t *parent_, uint32_t tid_, int sid);
|
rep_t (zmq::ctx_t *parent_, uint32_t tid_, int sid);
|
||||||
~rep_t ();
|
~rep_t ();
|
||||||
|
|
||||||
// Overloads of functions from socket_base_t.
|
// Overrides of functions from socket_base_t.
|
||||||
int xsend (zmq::msg_t *msg_);
|
int xsend (zmq::msg_t *msg_);
|
||||||
int xrecv (zmq::msg_t *msg_);
|
int xrecv (zmq::msg_t *msg_);
|
||||||
bool xhas_in ();
|
bool xhas_in ();
|
||||||
|
@ -38,7 +38,7 @@ namespace zmq
|
|||||||
req_t (zmq::ctx_t *parent_, uint32_t tid_, int sid_);
|
req_t (zmq::ctx_t *parent_, uint32_t tid_, int sid_);
|
||||||
~req_t ();
|
~req_t ();
|
||||||
|
|
||||||
// Overloads of functions from socket_base_t.
|
// Overrides of functions from socket_base_t.
|
||||||
int xsend (zmq::msg_t *msg_);
|
int xsend (zmq::msg_t *msg_);
|
||||||
int xrecv (zmq::msg_t *msg_);
|
int xrecv (zmq::msg_t *msg_);
|
||||||
bool xhas_in ();
|
bool xhas_in ();
|
||||||
@ -90,7 +90,7 @@ namespace zmq
|
|||||||
const address_t *addr_);
|
const address_t *addr_);
|
||||||
~req_session_t ();
|
~req_session_t ();
|
||||||
|
|
||||||
// Overloads of the functions from session_base_t.
|
// Overrides of the functions from session_base_t.
|
||||||
int push_msg (msg_t *msg_);
|
int push_msg (msg_t *msg_);
|
||||||
void reset ();
|
void reset ();
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ namespace zmq
|
|||||||
router_t (zmq::ctx_t *parent_, uint32_t tid_, int sid);
|
router_t (zmq::ctx_t *parent_, uint32_t tid_, int sid);
|
||||||
~router_t ();
|
~router_t ();
|
||||||
|
|
||||||
// Overloads of functions from socket_base_t.
|
// Overrides of functions from socket_base_t.
|
||||||
void xattach_pipe (zmq::pipe_t *pipe_, bool subscribe_to_all_);
|
void xattach_pipe (zmq::pipe_t *pipe_, bool subscribe_to_all_);
|
||||||
int xsetsockopt (int option_, const void *optval_, size_t optvallen_);
|
int xsetsockopt (int option_, const void *optval_, size_t optvallen_);
|
||||||
int xsend (zmq::msg_t *msg_);
|
int xsend (zmq::msg_t *msg_);
|
||||||
|
@ -131,7 +131,7 @@ namespace zmq
|
|||||||
bool subscribe_to_all_ = false) = 0;
|
bool subscribe_to_all_ = false) = 0;
|
||||||
|
|
||||||
// The default implementation assumes there are no specific socket
|
// The default implementation assumes there are no specific socket
|
||||||
// options for the particular socket type. If not so, overload this
|
// options for the particular socket type. If not so, override this
|
||||||
// method.
|
// method.
|
||||||
virtual int xsetsockopt (int option_, const void *optval_,
|
virtual int xsetsockopt (int option_, const void *optval_,
|
||||||
size_t optvallen_);
|
size_t optvallen_);
|
||||||
|
@ -38,7 +38,7 @@ namespace zmq
|
|||||||
stream_t (zmq::ctx_t *parent_, uint32_t tid_, int sid);
|
stream_t (zmq::ctx_t *parent_, uint32_t tid_, int sid);
|
||||||
~stream_t ();
|
~stream_t ();
|
||||||
|
|
||||||
// Overloads of functions from socket_base_t.
|
// Overrides of functions from socket_base_t.
|
||||||
void xattach_pipe (zmq::pipe_t *pipe_, bool subscribe_to_all_);
|
void xattach_pipe (zmq::pipe_t *pipe_, bool subscribe_to_all_);
|
||||||
int xsend (zmq::msg_t *msg_);
|
int xsend (zmq::msg_t *msg_);
|
||||||
int xrecv (zmq::msg_t *msg_);
|
int xrecv (zmq::msg_t *msg_);
|
||||||
|
@ -68,13 +68,13 @@ int zmq::sub_t::xsetsockopt (int option_, const void *optval_,
|
|||||||
|
|
||||||
int zmq::sub_t::xsend (msg_t *)
|
int zmq::sub_t::xsend (msg_t *)
|
||||||
{
|
{
|
||||||
// Overload the XSUB's send.
|
// Override the XSUB's send.
|
||||||
errno = ENOTSUP;
|
errno = ENOTSUP;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool zmq::sub_t::xhas_out ()
|
bool zmq::sub_t::xhas_out ()
|
||||||
{
|
{
|
||||||
// Overload the XSUB's send.
|
// Override the XSUB's send.
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ namespace zmq
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
// Overloads of functions from socket_base_t.
|
// Overrides of functions from socket_base_t.
|
||||||
void xattach_pipe (zmq::pipe_t *pipe_, bool subscribe_to_all_);
|
void xattach_pipe (zmq::pipe_t *pipe_, bool subscribe_to_all_);
|
||||||
int xsend (zmq::msg_t *msg_);
|
int xsend (zmq::msg_t *msg_);
|
||||||
bool xhas_out ();
|
bool xhas_out ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user