82 UInt_64 Send_v6(
const Str_8& addr,
UInt_16 port,
const Byte* data, UInt_64 size);
84 UInt_64 Send_v4(
const Str_8& addr,
UInt_16 port,
const Byte* data, UInt_64 size);
A wrapper class for the user datagram protocol socket.
Definition UDP_BSD.h:11
void SetBlocking(bool blocking) override
void SetIPv6Only(bool value) override
void Bind(const Endpoint &endpoint) override
bool IsIPv6Only() const override
UDP & operator=(const UDP &udp)
~UDP() override
Frees any native handles.
UInt_64 Send(const Endpoint &endpoint, const Byte *data, UInt_64 size) override
void Release() override
Frees native handles and uninitializes them.
bool IsBlocking() const override
UDP(const IP IP)
Default members initialization.
UInt_64 Receive(Endpoint *endpoint, Byte *data, UInt_64 size) override
UDP & operator=(UDP &&udp) noexcept
bool IsValid() const override
Str< Char_8, UInt_64 > Str_8
Definition Str.h:1953
unsigned char Byte
Definition Types.h:39
unsigned short UInt_16
Definition Types.h:46