Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

ss::ipv6_address Class Reference
[Network Addressing]

Improved sockaddr_in6. More...

#include <inet6_factory.h>

List of all members.

Public Types

typedef sockaddr_in6 sockaddr_t
 Base sockaddr type.

Public Member Functions

 ipv6_address ()
 Default constructor.
 ipv6_address (in6_addr const &address, unsigned short port)
 Constructor.
 ipv6_address (ipv6_address const &that)
 Copy constructor.
 ipv6_address (sockaddr_in6 const &that)
 Copy constructor.
 ipv6_address (sockaddr const &that)
 Copy constructor.
ipv6_addressoperator= (ipv6_address const &that)
 Assignment operator.
ipv6_addressoperator= (sockaddr_in6 const &that)
 Assignment operator.
ipv6_addressoperator= (sockaddr const &that)
 Assignment operator.

Static Public Attributes

static const int AF = AF_INET6
 Address family code.
static in6_addr const & any
 Any address.
static in6_addr const & loopback
 The loopback address.


Detailed Description

Improved sockaddr_in6.

Definition at line 39 of file inet6_factory.h.


Constructor & Destructor Documentation

ss::ipv6_address::ipv6_address in6_addr const &  address,
unsigned short  port
 

Constructor.

Takes an IPv6 address and a transport port.

Parameters are expected in network byte order.

For a randomly chosen address, pass in ipv6_address::any as first argument. For a randomly chosen port, pass in 0 as second argument.

ss::ipv6_address::ipv6_address sockaddr const &  that  ) 
 

Copy constructor.

Checks if address structure is of the correct family.


Member Function Documentation

ipv6_address& ss::ipv6_address::operator= sockaddr const &  that  ) 
 

Assignment operator.

Checks if address structure is of the correct family.


The documentation for this class was generated from the following file:
Generated on Sat May 21 21:25:51 2005 for Socket Streams Library by  doxygen 1.4.3