160 Str_8 RecvBody(UInt_64 contentLength);
162 UInt_64 RecvChunkSize();
164 Str_8 RecvChunk(UInt_64 chunkSize);
Str_8 remoteHostName
Definition BaseTCP.h:18
UInt_16 GetRemotePort() const
Definition BaseTCP.cpp:211
UInt_16 localPort
Definition BaseTCP.h:17
virtual void Initialize()=0
Explicitly initialize the socket.
bool listening
Definition BaseTCP.h:23
void SendRes(const Response &res)
Definition BaseTCP.cpp:98
virtual void Release()=0
Explicitly release resources before it falls off the stack.
void SendReq(Request &req)
Definition BaseTCP.cpp:106
virtual UInt_64 Receive(Byte *buffer, UInt_32 size)=0
IP GetAddressType() const
Definition BaseTCP.cpp:191
bool IsConnected() const
Definition BaseTCP.cpp:231
Str_8 localAddr
Definition BaseTCP.h:16
static const UInt_16 MaxHeaderSize
Definition BaseTCP.h:29
BaseTCP()
Initializes the socket with the defaults.
Definition BaseTCP.cpp:6
bool IsListening() const
Definition BaseTCP.cpp:226
Str_8 GetRemoteAddress() const
Definition BaseTCP.cpp:206
BaseTCP & operator=(BaseTCP &&tcp) noexcept
Definition BaseTCP.cpp:31
virtual bool IsIPv6Only() const =0
bool connected
Definition BaseTCP.h:24
Response RecvRes()
Definition BaseTCP.cpp:116
void SendStr(const Str_8 &str)
Definition BaseTCP.cpp:77
virtual bool IsBlocking() const =0
virtual void Bind(const Str_8 &address, UInt_16 port)=0
bool IsBound() const
Definition BaseTCP.cpp:221
Request RecvReq()
Definition BaseTCP.cpp:152
bool IsConnection() const
Definition BaseTCP.cpp:216
bool bound
Definition BaseTCP.h:22
static const UInt_16 HTTPS_Port
Definition BaseTCP.h:27
virtual bool IsValid() const =0
virtual void SetBlocking(bool blocking)=0
IP ip
Definition BaseTCP.h:15
bool connection
Definition BaseTCP.h:21
unsigned short GetLocalPort() const
Definition BaseTCP.cpp:201
UInt_16 remotePort
Definition BaseTCP.h:20
virtual void Connect(const Str_8 &address, UInt_16 port)=0
virtual ~BaseTCP()=default
Str_8 GetLocalAddress() const
Definition BaseTCP.cpp:196
static const UInt_16 HTTP_Port
Definition BaseTCP.h:28
virtual UInt_64 Send(const Byte *buffer, UInt_32 size)=0
virtual BaseTCP * Accept()=0
virtual void SetIPv6Only(bool value)=0
Str_8 remoteAddr
Definition BaseTCP.h:19
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