#ifndef PROXYTCPSESSION_H #define PROXYTCPSESSION_H #include class ProxyTcpSession : public std::enable_shared_from_this { public: ProxyTcpSession(boost::asio::ip::tcp::socket &&client, boost::asio::ip::tcp::socket &&server); ~ProxyTcpSession(); void run(); protected: void clientRead(); void serverRead(); private: boost::asio::ip::tcp::socket m_client; boost::asio::ip::tcp::socket m_server; std::array m_clientBuffer; std::array m_serverBuffer; }; #endif // PROXYTCPSESSION_H