79 size_t maxAllowedUnsentAsyncMessages = MAX_UNSENT_ASYNC_MSG_COUNT);
101 size_t maxAllowedUnsentAsyncMessages = MAX_UNSENT_ASYNC_MSG_COUNT);
121 bool Connected()
const;
133 bool CheckAndCreateConnection();
138 void CloseConnection();
155 size_t NumberOfUnsentAsyncMessages()
const;
159 void CreateConnection();
163 std::unique_ptr<IoContextThreadGroup> m_ioThreadGroup{};
169 size_t m_minAmountToRead{0};
177 size_t m_maxAllowedUnsentAsyncMessages{MAX_UNSENT_ASYNC_MSG_COUNT};
A bi-directional TCP client.
Definition: TcpClient.h:52
boost_iocontext_t & m_ioContext
I/O context reference.
Definition: TcpClient.h:165
std::function< size_t(const char_buffer_t &)> check_bytes_left_to_read_t
Typedef to bytes left to reading checking utility function object.
Definition: AsioDefines.h:288
File containing declarations relating the IoContextThreadGroup class.
std::function< void(const char_buffer_t &)> message_received_handler_t
Typedef to message received handler function object.
Definition: AsioDefines.h:290
File containing TCP connections class declaration.
The core_lib namespace.
Definition: AsioDefines.h:59
TCP connections class to manage the TcpConnection objects.
Definition: TcpConnections.h:52
eSendOption
Enumeration to control nagle algorithm.
Definition: AsioDefines.h:82
nagleOn - Send when possible.
std::pair< std::string, uint16_t > connection_t
Typedef describing a network connection as (address, port).
Definition: AsioDefines.h:152
boost_asio::io_context boost_iocontext_t
Boost IO context convenience typedef.
Definition: AsioDefines.h:46
std::vector< char > char_buffer_t
Typedef to generic char buffer based on s std::vector<char>.
Definition: AsioDefines.h:239