Class UdpSocket

Class Documentation

class UdpSocket

Public Functions

UdpSocket(const IoContext &ctx, const std::string &remote_ip, uint16_t remote_port, const std::string &host_ip, uint16_t host_port)
UdpSocket(const IoContext &ctx, const std::string &ip, uint16_t port)
~UdpSocket()
UdpSocket(const UdpSocket&) = delete
UdpSocket &operator=(const UdpSocket&) = delete
std::string remote_ip() const
uint16_t remote_port() const
std::string host_ip() const
uint16_t host_port() const
void open()
void close()
bool isOpen() const
void bind()
std::size_t send(std::vector<uint8_t> &buff)
size_t receive(std::vector<uint8_t> &buff)
void asyncSend(std::vector<uint8_t> &buff)
void asyncReceive(Functor func)