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