1 #include "socket_wrapper_base.h" 5 std::shared_ptr<zmq::context_t> context, zmq::socket_type type,
const std::string &addr,
const bool bound)
6 : addr_(addr), socket_(*context, type), bound_(bound)
8 socket_.setsockopt(ZMQ_LINGER, 0);
17 return zmq_pollitem_t{.socket = (
void *)
socket_, .fd = 0, .events = ZMQ_POLLIN, .revents = 0};
zmq_pollitem_t get_pollitem()
virtual void initialize()
virtual ~socket_wrapper_base()
socket_wrapper_base(std::shared_ptr< zmq::context_t > context, zmq::socket_type type, const std::string &addr, const bool bound)