void TcpDomainConnection::ConnectHandler(std::shared_ptr<TcpDomainConnection> conn, boost::system::error_code ec) { if (ec) { _errorCallback(conn, ec); return; } _connectCallback(shared_from_this()); }
void TcpSslConnection::HandleHandshake(const boost::system::error_code ec) { if (ec) { _errorCallback(shared_from_this(), ec); return; } std::cout << "SSL handle handshake" << std::endl; _connectCallback(shared_from_this()); }