Asynchronous communication class for a UDP socket.
More...
#include <udp.h>
|
void | do_async_read (const boost::asio::mutable_buffers_1 &buffer, boost::function< void(const boost::system::error_code &, size_t)> handler) override |
|
void | do_async_write (const boost::asio::const_buffers_1 &buffer, boost::function< void(const boost::system::error_code &, size_t)> handler) override |
|
void | do_close () override |
|
bool | do_init () override |
|
bool | is_open () override |
|
Asynchronous communication class for a UDP socket.
Definition at line 55 of file udp.h.
Bind a UDP socket.
- Parameters
-
bind_host | The bind host where this application is listening (usually "localhost") |
bind_port | The bind port where this application is listening |
remote_host | The remote host to communicate with |
remote_port | The port on the remote host |
Definition at line 48 of file udp.cpp.
async_comm::UDP::~UDP |
( |
| ) |
|
void async_comm::UDP::do_async_read |
( |
const boost::asio::mutable_buffers_1 & |
buffer, |
|
|
boost::function< void(const boost::system::error_code &, size_t)> |
handler |
|
) |
| |
|
overrideprivatevirtual |
void async_comm::UDP::do_async_write |
( |
const boost::asio::const_buffers_1 & |
buffer, |
|
|
boost::function< void(const boost::system::error_code &, size_t)> |
handler |
|
) |
| |
|
overrideprivatevirtual |
void async_comm::UDP::do_close |
( |
| ) |
|
|
overrideprivatevirtual |
bool async_comm::UDP::do_init |
( |
| ) |
|
|
overrideprivatevirtual |
bool async_comm::UDP::is_open |
( |
| ) |
|
|
overrideprivatevirtual |
boost::asio::ip::udp::endpoint async_comm::UDP::bind_endpoint_ |
|
private |
Definition at line 90 of file udp.h.
std::string async_comm::UDP::bind_host_ |
|
private |
Definition at line 83 of file udp.h.
uint16_t async_comm::UDP::bind_port_ |
|
private |
Definition at line 84 of file udp.h.
constexpr auto async_comm::UDP::DEFAULT_BIND_HOST = "localhost" |
|
staticprivate |
Definition at line 70 of file udp.h.
constexpr uint16_t async_comm::UDP::DEFAULT_BIND_PORT = 16140 |
|
staticprivate |
Definition at line 71 of file udp.h.
constexpr auto async_comm::UDP::DEFAULT_REMOTE_HOST = "localhost" |
|
staticprivate |
Definition at line 72 of file udp.h.
constexpr uint16_t async_comm::UDP::DEFAULT_REMOTE_PORT = 16145 |
|
staticprivate |
Definition at line 73 of file udp.h.
boost::asio::ip::udp::endpoint async_comm::UDP::remote_endpoint_ |
|
private |
Definition at line 91 of file udp.h.
std::string async_comm::UDP::remote_host_ |
|
private |
Definition at line 86 of file udp.h.
uint16_t async_comm::UDP::remote_port_ |
|
private |
Definition at line 87 of file udp.h.
boost::asio::ip::udp::socket async_comm::UDP::socket_ |
|
private |
Definition at line 89 of file udp.h.
The documentation for this class was generated from the following files: