9 static const char rcsid[] __attribute__((used)) =
"$Id: UDPPort.cpp 1653 2016-02-28 19:54:59Z sella $";
12 #include "PortException.h"
14 #include <sys/socket.h>
19 using namespace sella::net;
21 UDPPort::UDPPort(
const std::string &service)
throw (PortException) :
22 Port(service, Port::UDPRequired)
25 UDPPort::UDPPort(uint16_t port)
throw (PortException) :
26 Port(port, Port::UDPRequired)
29 UDPPort::UDPPort(
const UDPPort &other)
throw () :
33 UDPPort::UDPPort(
const UDPPort &&other) throw () :
37 UDPPort::~UDPPort() throw () { }
39 const UDPPort::shared UDPPort::shared_ptr(
const std::string &service)
throw (PortException) {
40 return std::make_shared<UDPPort>(service);
43 const UDPPort::shared UDPPort::shared_ptr(uint16_t port)
throw (PortException) {
44 return std::make_shared<UDPPort>(port);