thrift_asio_client_transport.hpp
29 ) : thrift_asio_transport(std::make_shared<boost::asio::ip::tcp::socket>(io_service), event_handlers)
virtual void open() override
Definition: thrift_asio_client_transport.hpp:42
Definition: thrift_asio_transport.hpp:32
virtual void on_error(const boost::system::error_code &ec)
Gets invoked when an error occurred while communication over the transport.
Definition: thrift_asio_transport.hpp:35
thrift_asio_client_transport(boost::asio::io_service &io_service, const std::string &host_name, const std::string &service_name, event_handlers *event_handlers)
creates a thrift_asio_client_transport and tries to connect to host_name:service_name ...
Definition: thrift_asio_client_transport.hpp:24
void connect_to(const std::string &host_name, const std::string &service_name)
close the current connection and connect to host_name::service_name
Definition: thrift_asio_client_transport.hpp:87
virtual void close() override
closes the transport
Definition: thrift_asio_transport.hpp:183
virtual void open() override
opens the transport
Definition: thrift_asio_transport.hpp:163
we're currently trying to resolve host_name:service_name
Definition: thrift_asio_transport.hpp:218
event_handlers * event_handlers_
handles events like on_error, etc.
Definition: thrift_asio_transport.hpp:224
socket_ptr socket_
the underlying socket
Definition: thrift_asio_transport.hpp:223
State state_
the state of this transport
Definition: thrift_asio_transport.hpp:222
Definition: thrift_asio_transport.hpp:26
Definition: thrift_asio_client_transport.hpp:20
the transport is currently connecting
Definition: thrift_asio_transport.hpp:217
