00001
00002
00003
00004
00005
00006
00007
00008
00009 static const char rcsid[] __attribute__((used)) = "$Id: UDPPort.cpp 1197 2014-10-14 22:26:11Z sella $";
00010
00011 #include "UDPPort.h"
00012 #include "PortException.h"
00013
00014 #include <sys/socket.h>
00015 #include <stdint.h>
00016
00017 #include <string>
00018
00019 using namespace sella::net;
00020
00021 UDPPort::UDPPort(const std::string &service) throw (PortException) :
00022 Port(service, Port::UDPRequired)
00023 { }
00024
00025 UDPPort::UDPPort(uint16_t port) throw (PortException) :
00026 Port(port, Port::UDPRequired)
00027 { }
00028
00029 UDPPort::UDPPort(const UDPPort &other) throw () :
00030 Port(other)
00031 { }
00032
00033 UDPPort::UDPPort(const UDPPort &&other) throw () :
00034 Port(other)
00035 { }
00036
00037 UDPPort::~UDPPort() throw () { }
00038
00039 const UDPPort::shared UDPPort::shared_ptr(const std::string &service) throw (PortException) {
00040 return std::make_shared<UDPPort>(service);
00041 }
00042
00043 const UDPPort::shared UDPPort::shared_ptr(uint16_t port) throw (PortException) {
00044 return std::make_shared<UDPPort>(port);
00045 }
00046
00047
00048
00049