9 #ifndef __libutilxx__sella__net__UDPSocket_H__
10 #define __libutilxx__sella__net__UDPSocket_H__
12 #include "../../common.h"
15 #include <sys/socket.h>
25 typedef std::shared_ptr<UDPSocket> shared;
29 UDPSocket(
int family)
throw (SocketException);
32 UDPSocket(
int family,
const std::string &address,
unsigned short port)
throw (SocketException);
37 void operator=(
const UDPSocket &sock) =
delete;
39 static const UDPSocket::shared shared_ptr(
int family)
throw (SocketException);
40 static const UDPSocket::shared shared_ptr(
int family,
const IPAddressPort &addressport)
throw (SocketException);
41 static const UDPSocket::shared shared_ptr(
int family,
const IPAddress &address,
const Port &port)
throw (SocketException);
42 static const UDPSocket::shared shared_ptr(
int family,
const std::string &address,
unsigned short port)
throw (SocketException);