28 void init(
const std::shared_ptr<zmq::context_t> &ctx,
const zmq::socket_type &type,
const std::string_view &addr,
38 ZeroMQ(
const zmq::socket_type &type,
const std::string &addr,
bool isBind);
47 ZeroMQ(
const std::shared_ptr<zmq::context_t> &ctx,
const zmq::socket_type &type,
const std::string &addr,
ZeroMQ(const ZeroMQ &)=delete
Copy constructor.
ZeroMQ & operator=(ZeroMQ &&)=delete
Move assignment operator.
std::vector< zmq::message_t > recvMessages()
const std::shared_ptr< zmq::context_t > & getContext() const
void init(const std::shared_ptr< zmq::context_t > &ctx, const zmq::socket_type &type, const std::string_view &addr, bool isBind)
const std::unique_ptr< zmq::socket_t > & getSocket() const
ZeroMQ & operator=(ZeroMQ)=delete
Copy assignment operator.
size_t sendMessages(std::vector< zmq::message_t > &msg)
const std::string & getAddress() const
ZeroMQ(ZeroMQ &&)=delete
Move constructor.
std::unique_ptr< zmq::socket_t > _socketPtr
std::shared_ptr< zmq::context_t > _contextPtr
ZeroMQ(const zmq::socket_type &type, const std::string &addr, bool isBind)