15#include <AUI/Common/AString.h>
16#include <AUI/Network.h>
19#include "AAbstractSocket.h"
20#include "AUI/IO/IInputStream.h"
21#include "AUI/IO/AIOException.h"
22#include "AUI/IO/IOutputStream.h"
24#include "AInet4Address.h"
25#include "AUI/Common/AByteBufferView.h"
virtual int createSocket()=0
Creates socket handle.
Acts like std::string_view but for AByteBuffer.
Definition AByteBufferView.h:24
std::vector-like growing array for byte storage.
Definition AByteBuffer.h:31
Represents an ipv4 address with port.
Definition AInet4Address.h:25
AUdpSocket(uint16_t port)
Creates socket.
Definition AUdpSocket.cpp:29
void read(AByteBuffer &buf, AInet4Address &dst)
Read data.
Definition AUdpSocket.cpp:55
void write(AByteBufferView buf, const AInet4Address &dst)
Sends data by address.
Definition AUdpSocket.cpp:44