1 #ifndef LIBJMMCG_CORE_SOCKET_CLIENT_MANAGER_HPP
2 #define LIBJMMCG_CORE_SOCKET_CLIENT_MANAGER_HPP
33 using socket_priority=
typename socket_t::socket_priority;
42 template<
class ConnPol>
43 client_manager(
std::size_t min_message_size,
std::size_t max_message_size,
unsigned short timeout, socket_priority priority,
std::size_t incoming_cpu, ConnPol
const &conn_pol);
52 void write(MsgT
const &message);
61 void read(MsgT &dest);
66 template<
class V,
std::size_t SrcSz>
void
67 read(V (& dest)[SrcSz]);
95 using socket_priority=
typename socket_t::socket_priority;
104 template<
class ConnPol>
105 client_manager(
std::size_t min_message_size,
std::size_t max_message_size,
unsigned short timeout, socket_priority priority,
std::size_t incoming_cpu, ConnPol
const &conn_pol);
114 void write(MsgT
const &message);
123 void read(MsgT &dest);
128 template<
class V,
std::size_t SrcSz>
void
129 read(V (& dest)[SrcSz]);
135 void stop()
noexcept(
true);
144 inline std::ostream &