sella::net::Port Class Reference

Inheritance diagram for sella::net::Port:
sella::net::TCPPort sella::net::UDPPort

List of all members.

Classes

struct  hash
struct  ptr_eq
struct  ptr_hash
struct  shared_eq
struct  shared_hash

Public Types

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

 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 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)

Static Public Attributes

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

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 31 of file Port.h.


The documentation for this class was generated from the following files:
 All Classes Functions Variables

Generated on 20 Nov 2014 for libutil++ by  doxygen 1.6.1