#include <udp_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) |
| UDPTransport (std::string address, std::string port="0") | |
| ~UDPTransport () | |
Public Member Functions inherited from Transport | |
| 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::udp::socket > | socket_ |
Additional Inherited Members | |
Protected Attributes inherited from Transport | |
| 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 udp_transport.h.
| UDPTransport::UDPTransport | ( | std::string | address, |
| std::string | port = "0" |
||
| ) |
Definition at line 7 of file udp_transport.cpp.
| UDPTransport::~UDPTransport | ( | ) |
Definition at line 16 of file udp_transport.cpp.
|
virtual |
Implements Transport.
Definition at line 21 of file udp_transport.cpp.
|
virtual |
Implements Transport.
Definition at line 32 of file udp_transport.cpp.
|
virtual |
Implements Transport.
Definition at line 38 of file udp_transport.cpp.
|
virtual |
Implements Transport.
Definition at line 51 of file udp_transport.cpp.
|
private |
Definition at line 32 of file udp_transport.h.