15#include <boost/asio/deadline_timer.hpp>
16#include <boost/asio/io_context.hpp>
17#include <boost/asio/ip/tcp.hpp>
18#include <boost/asio/strand.hpp>
37 :
public std::enable_shared_from_this<Client>,
42 using endpoint = boost::asio::ip::tcp::endpoint;
47 boost::asio::io_context &io_context,
Inherit (privately) to suppress copy/move construction and assignment.
A client that connects to a single stream.
boost::asio::io_context::strand _strand
callback_function_type _callback
std::function< void(Buffer)> callback_function_type
boost::asio::deadline_timer _connection_timer
std::shared_ptr< BufferPool > _buffer_pool
Client(boost::asio::io_context &io_context, const token_type &token, callback_function_type callback)
stream_id_type GetStreamId() const
boost::asio::ip::tcp::endpoint endpoint
boost::asio::ip::tcp::socket _socket
endpoint::protocol_type protocol_type
Serializes a stream endpoint.
const auto & get_stream_id() const
This file contains definitions of common data structures used in traffic manager.