#include <tcp_transport.h>
Public Member Functions | |
virtual bool | connect () |
virtual bool | disconnect () |
virtual bool | read (boost::array< uint8_t, 4096 > &buf, size_t &len) |
virtual bool | readWithTimeout (boost::array< uint8_t, 4096 > &buf, size_t &len, const uint32_t expiry_time) |
TCPTransport (std::string address) | |
~TCPTransport () | |
![]() | |
std::string | get_device_ip () |
std::string | get_host_ip () |
std::string | get_port () |
transport_type | get_type () |
bool | is_connected () |
void | set_port (std::string port) |
Transport (std::string address, transport_type typ) | |
Private Attributes | |
std::unique_ptr< boost::asio::ip::tcp::socket > | socket_ |
Additional Inherited Members | |
![]() | |
std::string | address_ |
std::string | host_ip_ |
std::shared_ptr< boost::asio::io_service > | io_service_ |
bool | is_connected_ |
std::string | port_ |
std::shared_ptr< boost::asio::deadline_timer > | timer_ |
boost::optional< boost::system::error_code > | timer_result_ |
transport_type | type_ |
Definition at line 19 of file tcp_transport.h.
TCPTransport::TCPTransport | ( | std::string | address | ) |
Definition at line 7 of file tcp_transport.cpp.
TCPTransport::~TCPTransport | ( | ) |
Definition at line 14 of file tcp_transport.cpp.
|
virtual |
Implements Transport.
Definition at line 19 of file tcp_transport.cpp.
|
virtual |
Implements Transport.
Definition at line 48 of file tcp_transport.cpp.
|
virtual |
Implements Transport.
Definition at line 55 of file tcp_transport.cpp.
|
virtual |
Implements Transport.
Definition at line 66 of file tcp_transport.cpp.
|
private |
Definition at line 32 of file tcp_transport.h.