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

ss::ipv4_address Class Reference
[Network Addressing]

Improved sockaddr_in. More...

#include <inet_factory.h>

List of all members.

Public Types

typedef sockaddr_in sockaddr_t
 Base sockaddr type.

Public Member Functions

 ipv4_address ()
 Default constructor.
 ipv4_address (in_addr const &address, unsigned short port)
 Constructor.
 ipv4_address (ipv4_address const &that)
 Copy constructor.
 ipv4_address (sockaddr_in const &that)
 Copy constructor.
 ipv4_address (sockaddr const &that)
 Copy constructor.
ipv4_addressoperator= (ipv4_address const &that)
 Assignment operator.
ipv4_addressoperator= (sockaddr_in const &that)
 Assignment operator.
ipv4_addressoperator= (sockaddr const &that)
 Assignment operator.

Static Public Attributes

static const int AF = AF_INET
 Address family code.
static const in_addr any
 Any address.
static const in_addr loopback
 The loopback address.


Detailed Description

Improved sockaddr_in.

Definition at line 39 of file inet_factory.h.


Constructor & Destructor Documentation

ss::ipv4_address::ipv4_address in_addr const &  address,
unsigned short  port
 

Constructor.

Takes an IPv4 address and a transport port.

Parameters are expected in network byte order.

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

ss::ipv4_address::ipv4_address sockaddr const &  that  ) 
 

Copy constructor.

Checks if the address structure is of the correct family.


Member Function Documentation

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

Assignment operator.

Checks if the 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