|
template<class LatencyTimestamps , class = typename std::enable_if<std::is_class<typename LatencyTimestamps::period>::value>::type> |
| svr (boost::asio::ip::address const &addr, unsigned short port_num, unsigned short timeout, typename socket_t::socket_priority priority, thread_t::thread_traits::api_params_type::processor_mask_type mask, const thread_t::thread_traits::api_params_type::priority_type cpu_priority, proc_rules_t const &proc_ops, LatencyTimestamps &ts, server_to_client_flow_t &&server_to_client_flow=[](auto const &) {}) noexcept(false) |
| A simple socket-based server that listens to connections to the specified endpoint and responds to messages received in the specified manner. i.e. loops them back. More...
|
|
template<class LatencyTimestamps , class = typename std::enable_if<std::is_class<typename LatencyTimestamps::period>::value>::type> |
| svr (boost::asio::ip::address const &addr, unsigned short port_num, typename socket_t::socket_priority priority, thread_t::thread_traits::api_params_type::processor_mask_type mask, const thread_t::thread_traits::api_params_type::priority_type cpu_priority, proc_rules_t const &proc_ops, LatencyTimestamps &ts, server_to_client_flow_t &&server_to_client_flow=[](auto const &) {}) noexcept(false) |
|
template<class LatencyTimestamps , class = typename std::enable_if<std::is_class<typename LatencyTimestamps::period>::value>::type> |
| svr (boost::asio::ip::address const &addr, unsigned short port_num, unsigned short timeout, typename socket_t::socket_priority priority, thread_t::thread_traits::api_params_type::processor_mask_type mask, const thread_t::thread_traits::api_params_type::priority_type cpu_priority, proc_rules_t const &proc_ops, socket_t &dest_skt, LatencyTimestamps &ts, server_to_client_flow_t &&server_to_client_flow=[](auto const &) {}) noexcept(false) |
| A simple socket-based server that listens to connections to the specified endpoint (e.g. a client that sends FIX messages) and responds to messages received in the specified manner. i.e. forwards the messages. More...
|
|
template<class LatencyTimestamps , class = typename std::enable_if<std::is_class<typename LatencyTimestamps::period>::value>::type> |
| svr (boost::asio::ip::address const &addr, unsigned short port_num, typename socket_t::socket_priority priority, thread_t::thread_traits::api_params_type::processor_mask_type mask, const thread_t::thread_traits::api_params_type::priority_type cpu_priority, proc_rules_t const &proc_ops, socket_t &dest_skt, LatencyTimestamps &ts, server_to_client_flow_t &&server_to_client_flow=[](auto const &) {}) noexcept(false) |
|
template<class LatencyTimestamps > |
| svr (ctor_args const &args, typename socket_t::socket_priority priority, thread_t::thread_traits::api_params_type::processor_mask_type mask, const thread_t::thread_traits::api_params_type::priority_type cpu_priority, LatencyTimestamps &ts, server_to_client_flow_t &&server_to_client_flow=[](auto const &) {}) noexcept(false) |
|
template<class LatencyTimestamps > |
| svr (ctor_args const &args, socket_t &dest_skt, unsigned short timeout, typename socket_t::socket_priority priority, thread_t::thread_traits::api_params_type::processor_mask_type mask, const thread_t::thread_traits::api_params_type::priority_type cpu_priority, LatencyTimestamps &ts, server_to_client_flow_t &&server_to_client_flow=[](auto const &) {}) noexcept(false) |
|
| ~svr () noexcept(true) |
|
void | stop () noexcept(true) |
|
std::string | to_string () const noexcept(false) |
|
std::sig_atomic_t | signal_status () const noexcept(true) |
|
template<class ProcessingRules, class SvrMgr>
class jmmcg::socket::svr< ProcessingRules, SvrMgr >
A very simple socket-based server.
This server only handles a single client at any time. Re-connections are possible.
Definition at line 84 of file socket_server.hpp.
template<class ProcessingRules , class SvrMgr >
template<class LatencyTimestamps , class >
jmmcg::socket::svr< ProcessingRules, SvrMgr >::svr |
( |
boost::asio::ip::address const & |
addr, |
|
|
unsigned short |
port_num, |
|
|
unsigned short |
timeout, |
|
|
typename socket_t::socket_priority |
priority, |
|
|
thread_t::thread_traits::api_params_type::processor_mask_type |
mask, |
|
|
const thread_t::thread_traits::api_params_type::priority_type |
cpu_priority, |
|
|
proc_rules_t const & |
proc_ops, |
|
|
LatencyTimestamps & |
ts, |
|
|
server_to_client_flow_t && |
server_to_client_flow = [](auto const &) {} |
|
) |
| |
|
inlinenoexcept |
A simple socket-based server that listens to connections to the specified endpoint and responds to messages received in the specified manner. i.e. loops them back.
- Parameters
-
addr | The IPv4 or IPv6 address to which the connection should be made. |
port_num | The port number to which the connection should be made. |
priority | The priority at which the TCP messages should be sent, relating to QoS. |
proc_ops | The responses that the server should make to messages received on the endpoint, sent back to the connected endpoint. |
- See also
- ctor_args
Definition at line 59 of file socket_server_impl.hpp.
template<class ProcessingRules , class SvrMgr >
template<class LatencyTimestamps , class >
jmmcg::socket::svr< ProcessingRules, SvrMgr >::svr |
( |
boost::asio::ip::address const & |
addr, |
|
|
unsigned short |
port_num, |
|
|
unsigned short |
timeout, |
|
|
typename socket_t::socket_priority |
priority, |
|
|
thread_t::thread_traits::api_params_type::processor_mask_type |
mask, |
|
|
const thread_t::thread_traits::api_params_type::priority_type |
cpu_priority, |
|
|
proc_rules_t const & |
proc_ops, |
|
|
socket_t & |
dest_skt, |
|
|
LatencyTimestamps & |
ts, |
|
|
server_to_client_flow_t && |
server_to_client_flow = [](auto const &) {} |
|
) |
| |
|
inlinenoexcept |
A simple socket-based server that listens to connections to the specified endpoint (e.g. a client that sends FIX messages) and responds to messages received in the specified manner. i.e. forwards the messages.
- Parameters
-
addr | The IPv4 or IPv6 address to which the connection should be made. |
port_num | The port number to which the connection should be made. |
priority | The priority at which the TCP messages should be sent, relating to QoS. |
proc_ops | The responses that the server should make to messages received on the endpoint. |
dest_skt | The socket to which the received messages should be forwarded after suitable processing. e.g. the exchange. |
- See also
- ctor_args
Definition at line 92 of file socket_server_impl.hpp.