libutil++  1.9.3
 All Classes Functions Variables
Public Types | Public Member Functions | Static Public Member Functions | List of all members
sella::net::TCPPort Class Reference
Inheritance diagram for sella::net::TCPPort:
sella::net::Port

Public Types

typedef std::shared_ptr< TCPPortshared
 
typedef TCPPortptr
 
- Public Types inherited from sella::net::Port
typedef std::shared_ptr< Portshared
 
typedef Portptr
 
typedef std::list< Portlist
 
typedef std::list< ptrptr_list
 
typedef std::list< shared > shared_list
 
typedef std::forward_list< Portflist
 
typedef std::forward_list< ptrptr_flist
 
typedef std::forward_list< shared > shared_flist
 
typedef std::vector< Portvector
 
typedef std::vector< ptrptr_vector
 
typedef std::vector< shared > shared_vector
 
typedef std::unordered_set
< Port, hash
uset
 
typedef std::unordered_set
< ptr, hash
ptr_uset
 
typedef std::unordered_set
< shared, hash
shared_uset
 
typedef
std::unordered_multiset< Port,
hash
umset
 
typedef
std::unordered_multiset< ptr,
hash
ptr_umset
 
typedef
std::unordered_multiset
< shared, hash
shared_umset
 

Public Member Functions

 TCPPort (const std::string &service) throw (PortException)
 
 TCPPort (uint16_t port=0) throw (PortException)
 
 TCPPort (const TCPPort &other) throw ()
 
 TCPPort (const TCPPort &&other) throw ()
 
- Public Member Functions inherited from sella::net::Port
 Port (const std::string &service, int protocol=TCPPreferred) throw (PortException)
 
 Port (uint16_t port=0, int protocol=TCPPreferred) throw (PortException)
 
 Port (const struct sockaddr_storage *ss, int protocol=TCPPreferred) throw (PortException)
 
 Port (const struct sockaddr *sa, int protocol=TCPPreferred) throw (PortException)
 
 Port (const Port &other) throw ()
 
 Port (const Port &&other) throw ()
 
Portoperator= (const Port &other) throw ()
 
Portoperator= (const Port &&other) throw ()
 
bool operator== (const Port &other) const throw ()
 
bool operator!= (const Port &other) const throw ()
 
bool operator>= (const Port &other) const throw ()
 
bool operator<= (const Port &other) const throw ()
 
bool operator< (const Port &other) const throw ()
 
bool operator> (const Port &other) const throw ()
 
uint16_t get (void) const throw ()
 
uint16_t getPort (void) const throw ()
 
int getProtocol (void) const throw ()
 
const std::string & str (void) const throw ()
 
const char * c_str (void) const throw ()
 
uint32_t getU32 (void) const throw ()
 
uint32_t getHash (void) const throw ()
 
bool empty (void) const throw ()
 
void clear (void) throw ()
 

Static Public Member Functions

static const TCPPort::shared shared_ptr (const std::string &service) throw (PortException)
 
static const TCPPort::shared shared_ptr (uint16_t port=0) throw (PortException)
 
- Static Public Member Functions inherited from sella::net::Port
static const Port::shared shared_ptr (const std::string &service, int protocol=TCPPreferred) throw (PortException)
 
static const Port::shared shared_ptr (uint16_t port=0, int protocol=TCPPreferred) throw (PortException)
 
static const Port::shared shared_ptr (const struct sockaddr_storage *ss, int protocol=TCPPreferred) throw (PortException)
 
static const Port::shared shared_ptr (const struct sockaddr *sa, int protocol=TCPPreferred) throw (PortException)
 
static bool shared_bi_cmp (shared &a, shared &b)
 
static bool shared_bi_eq (shared &a, shared &b)
 

Additional Inherited Members

- Static Public Attributes inherited from sella::net::Port
static const int UDPPreferred = 0x01
 
static const int UDPRequired = 0x03
 
static const int TCPPreferred = 0x04
 
static const int TCPRequired = 0x12
 
static const int UDPProtocol = SOCK_DGRAM
 
static const int TCPProtocol = SOCK_STREAM
 
- Protected Member Functions inherited from sella::net::Port
bool parseUDPPreferred (uint16_t &port, int &protocol, const std::string &service) throw ()
 
bool parseTCPPreferred (uint16_t &port, int &protocol, const std::string &service) throw ()
 
bool parseUDPRequired (uint16_t &port, int &protocol, const std::string &service) throw ()
 
bool parseTCPRequired (uint16_t &port, int &protocol, const std::string &service) throw ()
 

Detailed Description

Definition at line 27 of file TCPPort.h.


The documentation for this class was generated from the following files: