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,
std::shared_ptr< BufferPool > _buffer_pool
boost::asio::deadline_timer _connection_timer
endpoint::protocol_type protocol_type
callback_function_type _callback
This file contains definitions of common data structures used in traffic manager. ...
stream_id_type GetStreamId() const
A client that connects to a single stream.
boost::asio::io_context::strand _strand
boost::asio::ip::tcp::socket _socket
Serializes a stream endpoint.
Client(boost::asio::io_context &io_context, const token_type &token, callback_function_type callback)
std::function< void(Buffer)> callback_function_type
const auto & get_stream_id() const
boost::asio::ip::tcp::endpoint endpoint
Inherit (privately) to suppress copy/move construction and assignment.