|
ReCodEx - Task Broker
ReCodEx is complex programmer testing solution, primary targeted to technical universities. It's highly customizable and based on modern technologies.
|
#include <router_socket_wrapper.h>
Inheritance diagram for router_socket_wrapper:Public Member Functions | |
| router_socket_wrapper (std::shared_ptr< zmq::context_t > context, const std::string &addr, const bool bound) | |
| bool | send_message (const message_container &message) |
| bool | receive_message (message_container &target) |
Public Member Functions inherited from socket_wrapper_base | |
| socket_wrapper_base (std::shared_ptr< zmq::context_t > context, zmq::socket_type type, const std::string &addr, const bool bound) | |
| virtual | ~socket_wrapper_base () |
| zmq_pollitem_t | get_pollitem () |
| virtual void | initialize () |
| void | restart () |
Additional Inherited Members | |
Protected Attributes inherited from socket_wrapper_base | |
| zmq::socket_t | socket_ |
| const std::string | addr_ |
| const bool | bound_ |
Wraps a ZeroMQ router socket
Definition at line 11 of file router_socket_wrapper.h.
| router_socket_wrapper::router_socket_wrapper | ( | std::shared_ptr< zmq::context_t > | context, |
| const std::string & | addr, | ||
| const bool | bound | ||
| ) |
| context | a ZeroMQ context |
| addr | address used by the socket |
| bound | true if the socket should bind, false if it connects |
Definition at line 3 of file router_socket_wrapper.cpp.
|
virtual |
Receive a message from the socket
Implements socket_wrapper_base.
Definition at line 29 of file router_socket_wrapper.cpp.
|
virtual |
Send a message through the socket
Implements socket_wrapper_base.
Definition at line 9 of file router_socket_wrapper.cpp.