A wrapper class for the transmission control protocol socket.
Definition TCP_BSD.h:14
void Listen() override
Listens for incoming connections. Used for servers or PtP.
bool IsIPv6Only() const override
void Initialize() override
Explicitly initialize the socket.
~TCP() override
Frees any native handles.
void Release() override
Frees native handles and uninitializes them.
bool IsBlocking() const override
UInt_64 Receive(Byte *buffer, UInt_32 size) override
TCP()
Default members initialization.
TCP & operator=(TCP &&tcp) noexcept
TCP & operator=(const TCP &tcp)
UInt_64 Send(const Byte *buffer, UInt_32 size) override
void Connect(const Str_8 &address, UInt_16 port) override
void Bind(const Str_8 &address, UInt_16 port) override
void SetIPv6Only(bool value) override
bool IsValid() const override
void SetBlocking(bool blocking) override
unsigned int UInt_32
Definition Types.h:49
Str< Char_8, UInt_64 > Str_8
Definition Str.h:1902
unsigned char Byte
Definition Types.h:39
unsigned short UInt_16
Definition Types.h:46