7 #if defined(_WIN32) && defined(_MSC_VER)
68 ssize_t
read(
string& from,
unsigned int&
port,
void* buf,
const size_t bytes);
80 ssize_t
write(
const string& to,
const unsigned int port,
void* buf,
const size_t bytes);
Base exception class for network IO exceptions.
Base class of network sockets.
Class representing a UDP socket.
ssize_t read(string &from, unsigned int &port, void *buf, const size_t bytes)
Reads a datagram from socket.
static UDPSocket * create(IpVersion ipVersion)
Creates a UDP socket.
ssize_t write(const string &to, const unsigned int port, void *buf, const size_t bytes)
Writes a datagram to socket.
virtual ~UDPSocket()
Destructor.
static UDPSocket * createClientSocket(IpVersion ipVersion)
Creates a UDP client socket.
static UDPSocket * createServerSocket(const string &ip, const unsigned int port)
Creates a UDP server socket.
UDPSocket(IpVersion ipVersion)
Constructor.
#define FORBID_CLASS_COPY(CLASS)