Add client mode to TcpStream

This commit is contained in:
badaix 2019-11-28 20:07:43 +01:00
parent 43c58febd7
commit fd616956cb
3 changed files with 75 additions and 21 deletions

View file

@ -40,6 +40,10 @@ protected:
void connect() override;
void disconnect() override;
std::unique_ptr<tcp::acceptor> acceptor_;
std::string host_;
size_t port_;
bool is_server_;
boost::asio::deadline_timer reconnect_timer_;
};