address.h File Reference

Network addresses and sockets related classes. More...

#include <cc++/config.h>
#include <cc++/missing.h>
#include <cc++/thread.h>
#include <cc++/exception.h>

Go to the source code of this file.

Namespaces

namespace  ost

Classes

class  ost::IPV4Validator
 Classes derived from IPV4Address would require an specific validator to pass to the IPV4Address constructor.Abstract base class for derived inet addresses validators. More...
class  ost::IPV4MulticastValidator
 Class for the function object that validates multicast addresses.Validating class specialized for multicast addresses. More...
class  ost::IPV4Cidr
 The CIDR class is used to support routing tables and validate address policies.Classless Internet Domain Routing. More...
class  ost::IPV6Cidr
 The CIDR class is used to support routing tables and validate address policies.Classless Internet Domain Routing. More...
class  ost::IPV4Address
 The network name and address objects are all derived from a common IPV4Address base class.Internet Address binary data type. More...
class  ost::IPV4Mask
 Internet addresses used specifically as masking addresses (such as " 255.255.255.0") are held in the IPV4Mask derived object.Internet Address Mask such as subnet masks. More...
class  ost::IPV4Host
 This object is used to hold the actual and valid internet address of a specific host machine that will be accessed through a socket.Address of a specific Internet host machine. More...
class  ost::IPV4Broadcast
 The broadcast address object is used to store the broadcast address for a specific subnet. More...
class  ost::IPV4Multicast
 A specialization of IPV4Address that provides address validation for multicast addresses.A multicast network address. More...
class  ost::IPV6Validator
 Classes derived from IPV6Address would require an specific validator to pass to the IPV6Address constructor.Abstract base class for derived inet addresses validators. More...
class  ost::IPV6MulticastValidator
 Class for the function object that validates multicast addresses.Validating class specialized for multicast addresses. More...
class  ost::IPV6Address
 The network name and address objects are all derived from a common IPV6Address base class.Internet Address binary data type. More...
class  ost::IPV6Mask
 Internet addresses used specifically as masking addresses (such as " 255.255.255.0") are held in the IPV6Mask derived object.Internet Address Mask such as subnet masks. More...
class  ost::IPV6Host
 This object is used to hold the actual and valid internet address of a specific host machine that will be accessed through a socket.Address of a specific Internet host machine. More...
class  ost::IPV6Broadcast
 The broadcast address object is used to store the broadcast address for a specific subnet. More...
class  ost::IPV6Multicast
 A specialization of IPV6Address that provides address validation for multicast addresses.A multicast network address. More...

Defines

#define INET_IPV4_ADDRESS_SIZE   16
#define CIDR_IPV4_ADDRESS_SIZE   32
#define INET_IPV6_ADDRESS_SIZE   40
#define CIDR_IPV6_ADDRESS_SIZE   45
#define CIDR   IPV4Cidr
#define InetAddress   IPV4Address
#define InetHostAddress   IPV4Host
#define InetMaskAddress   IPV4Mask
#define InetMcastAddress   IPV4Multicast
#define InetMcastAddressValidator   IPV4MulticastValidator
#define InetAddrValidator   IPV4Validator
#define BroadcastAddress   IPV4Broadcast

Typedefs

typedef unsigned short ost::tpport_t
 Transport Protocol Ports.

Functions

bool ost::operator== (struct sockaddr *sa, IPV4Cidr &cidr)
bool ost::operator== (struct in_addr &a, IPV4Cidr &cidr)
bool ost::operator== (struct sockaddr *sa, IPV6Cidr &cidr)
bool ost::operator== (struct in6_addr &a, IPV6Cidr &cidr)
__EXPORT std::ostream & ost::operator<< (std::ostream &os, const IPV4Address &ia)
in_addr ost::getaddress (const IPV4Address &ia)
__EXPORT std::ostream & ost::operator<< (std::ostream &os, const IPV6Address &ia)
in6_addr ost::getaddress (const IPV6Address &ia)

Variables

__EXPORT ost::IPV4Host
__EXPORT ost::IPV6Host


Detailed Description

Network addresses and sockets related classes.


Define Documentation

#define BroadcastAddress   IPV4Broadcast
 

Examples:
tcpthread.cpp.

#define CIDR   IPV4Cidr
 

#define CIDR_IPV4_ADDRESS_SIZE   32
 

#define CIDR_IPV6_ADDRESS_SIZE   45
 

#define INET_IPV4_ADDRESS_SIZE   16
 

#define INET_IPV6_ADDRESS_SIZE   40
 

#define InetAddress   IPV4Address
 

Examples:
tcp.cpp, tcpstr1.cpp, and tcpthread.cpp.

#define InetAddrValidator   IPV4Validator
 

#define InetHostAddress   IPV4Host
 

Examples:
SampleSocketPort.cpp, tcp.cpp, tcpservice.cpp, and tcpthread.cpp.

#define InetMaskAddress   IPV4Mask
 

#define InetMcastAddress   IPV4Multicast
 

#define InetMcastAddressValidator   IPV4MulticastValidator
 


Generated on Thu Nov 9 19:38:30 2006 for GNU CommonC++ by  doxygen 1.4.6