Class UdpSocket
Defined in File udp_socket.hpp
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()
-
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)
-
UdpSocket(const IoContext &ctx, const std::string &remote_ip, uint16_t remote_port, const std::string &host_ip, uint16_t host_port)