17 #ifndef ZMQPP_MESSAGE_FRAME_HPP_
18 #define ZMQPP_MESSAGE_FRAME_HPP_
38 frame(
void const* part,
size_t const size);
39 frame(
void* part,
size_t const size, zmq_free_fn *ffn,
void *hint);
44 void const*
data()
const {
return zmq_msg_data( const_cast<zmq_msg_t*>(&
_msg) ); }
45 size_t size()
const {
return zmq_msg_size( const_cast<zmq_msg_t*>(&
_msg) ); }
#define ZMQPP_EXPLICITLY_DELETED
Definition: compatibility.hpp:100
C++ wrapper around zmq.
Definition: actor.cpp:29
~frame()
Definition: frame.cpp:64
bool is_sent() const
Definition: frame.hpp:43
zmq_msg_t & msg()
Definition: frame.hpp:48
void mark_sent()
Definition: frame.hpp:47
frame & operator=(frame &&other)
Definition: frame.cpp:82
size_t size() const
Definition: frame.hpp:45
frame()
Definition: frame.cpp:25
#define NOEXCEPT
Definition: compatibility.hpp:104
zmq_msg_t _msg
Definition: frame.hpp:58
void const * data() const
Definition: frame.hpp:44
an internal frame wrapper for a single zmq message
Definition: frame.hpp:33
frame copy() const
Definition: frame.cpp:91
bool _sent
Definition: frame.hpp:57