14#include <AUI/Network.h>
16#include "AAbstractSocket.h"
17#include "AUI/IO/IInputStream.h"
18#include "AUI/IO/IOutputStream.h"
20#include "AInet4Address.h"
29 friend class ATcpServerSocket;
34 ~ATcpSocket()
override;
36 size_t read(
char* dst,
size_t size)
override;
37 void write(
const char* buffer,
size_t size)
override;
40 ATcpSocket(
int handle,
const AInet4Address& selfAddr) : AAbstractSocket(handle, selfAddr) {}
virtual int createSocket()=0
Creates socket handle.
std::vector-like growing array for byte storage.
Definition AByteBuffer.h:31
Represents an ipv4 address with port.
Definition AInet4Address.h:25
Definition IOutputStream.h:18
virtual void write(const char *src, size_t size)=0
Writes exact size bytes to stream. Blocking (waiting for write all data) is allowed.