29 static const UInt_16 MaxHeaderSize = 8192;
87 void SendStr(
const Str_8& str);
107 IP GetAddressType()
const;
111 Str_8 GetLocalAddress()
const;
115 unsigned short GetLocalPort()
const;
119 Str_8 GetRemoteAddress()
const;
127 bool IsConnection()
const;
131 bool IsBound()
const;
135 bool IsListening()
const;
139 bool IsConnected()
const;
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 localPort
Definition: BaseTCP.h:17
virtual void Initialize()=0
Explicitly initialize the socket.
bool listening
Definition: BaseTCP.h:23
virtual void Release()=0
Explicitly release resources before it falls off the stack.
virtual UInt_64 Receive(Byte *buffer, UInt_32 size)=0
Str_8 localAddr
Definition: BaseTCP.h:16
virtual bool IsIPv6Only() const =0
bool connected
Definition: BaseTCP.h:24
virtual bool IsBlocking() const =0
virtual void Bind(const Str_8 &address, UInt_16 port)=0
bool bound
Definition: BaseTCP.h:22
virtual bool IsValid() const =0
virtual void SetBlocking(bool blocking)=0
IP ip
Definition: BaseTCP.h:15
bool connection
Definition: BaseTCP.h:21
UInt_16 remotePort
Definition: BaseTCP.h:20
virtual void Connect(const Str_8 &address, UInt_16 port)=0
virtual ~BaseTCP()=default
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
Definition: Response.h:12
unsigned int UInt_32
Definition: Types.h:49
IP
Definition: Socket.h:29
unsigned char Byte
Definition: Types.h:39
unsigned short UInt_16
Definition: Types.h:46