libzmq
src
rep.hpp
Go to the documentation of this file.
1
/* SPDX-License-Identifier: MPL-2.0 */
2
3
#ifndef __ZMQ_REP_HPP_INCLUDED__
4
#define __ZMQ_REP_HPP_INCLUDED__
5
6
#include "
router.hpp
"
7
8
namespace
zmq
9
{
10
class
ctx_t;
11
class
msg_t;
12
class
io_thread_t;
13
class
socket_base_t;
14
15
class
rep_t
ZMQ_FINAL
:
public
router_t
16
{
17
public
:
18
rep_t (zmq::ctx_t *parent_, uint32_t tid_,
int
sid_);
19
~rep_t ();
20
21
// Overrides of functions from socket_base_t.
22
int
xsend (
zmq::msg_t
*msg_);
23
int
xrecv (
zmq::msg_t
*msg_);
24
bool
xhas_in ();
25
bool
xhas_out ();
26
27
private
:
28
// If true, we are in process of sending the reply. If false we are
29
// in process of receiving a request.
30
bool
_sending_reply
;
31
32
// If true, we are starting to receive a request. The beginning
33
// of the request is the backtrace stack.
34
bool
_request_begins
;
35
36
ZMQ_NON_COPYABLE_NOR_MOVABLE
(rep_t)
37
};
38
}
39
40
#endif
router.hpp
zmq
Definition:
zmq.hpp:229
ZMQ_NON_COPYABLE_NOR_MOVABLE
#define ZMQ_NON_COPYABLE_NOR_MOVABLE(classname)
Definition:
macros.hpp:58
zmq::ZMQ_FINAL::_request_begins
bool _request_begins
Definition:
rep.hpp:34
ZMQ_FINAL
Definition:
unittest_ip_resolver.cpp:26
zmq::msg_t
Definition:
msg.hpp:33
zmq::ZMQ_FINAL::_sending_reply
bool _sending_reply
Definition:
rep.hpp:30
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:58