The C++ framework for developing highly scalable, high performance servers on Windows platforms.

IAddressType Class Reference
[AddressesInterfacesProtected destructors on abstract base classes]

Inheritance diagram for IAddressType:

List of all members.


Detailed Description

An interface that provides meta-data information about the type of a Winsock Address.

Public Member Functions

 IAddressType ()
 IAddressType (const IAddressType &rhs)
IAddressTypeoperator= (const IAddressType &rhs)
virtual unsigned short Family () const =0
 Returns the address family of the address type.
virtual int Protocol () const =0
 Returns the protocol of the address type.
virtual int Size () const =0
 Returns the number of bytes required to store an address of this type.
virtual const IAddressWildcardAddress () const =0
 Returns this address type's wildcard address; e.g. INADDR_ANY for IPv4. Yes, I know that at present all wildcard addresses are just a zero filled address structure, but...
virtual bool operator== (const IAddressType &rhs) const
virtual bool operator!= (const IAddressType &rhs) const
virtual
JetByteTools::Core::_tstring 
ToString () const
virtual std::string ToStringA () const

Protected Member Functions

virtual ~IAddressType ()
 We never delete instances of this interface; you must manage the lifetime of the class that implements it.

Constructor & Destructor Documentation

IAddressType (  ) 

IAddressType ( const IAddressType rhs  ) 

virtual ~IAddressType (  )  [protected, virtual]

We never delete instances of this interface; you must manage the lifetime of the class that implements it.


Member Function Documentation

IAddressType& operator= ( const IAddressType rhs  ) 

virtual unsigned short Family (  )  const [pure virtual]

Returns the address family of the address type.

Implemented in CAddressType.

virtual int Protocol (  )  const [pure virtual]

Returns the protocol of the address type.

Implemented in CAddressType.

virtual int Size (  )  const [pure virtual]

Returns the number of bytes required to store an address of this type.

Implemented in CAddressType.

virtual const IAddress& WildcardAddress (  )  const [pure virtual]

Returns this address type's wildcard address; e.g. INADDR_ANY for IPv4. Yes, I know that at present all wildcard addresses are just a zero filled address structure, but...

Implemented in CAddressType.

virtual bool operator== ( const IAddressType rhs  )  const [inline, virtual]

virtual bool operator!= ( const IAddressType rhs  )  const [inline, virtual]

_tstring ToString (  )  const [virtual]

string ToStringA (  )  const [virtual]


Generated on Sun Sep 12 19:10:14 2021 for The Server Framework - v7.4 by doxygen 1.5.3