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

CAddressType Class Reference
[Addresses]

Inheritance diagram for CAddressType:
Collaboration diagram for CAddressType:

List of all members.


Detailed Description

A generic implementation of the IAddressType interface. Should be suitable for all types of addresses, just supply the appropriate values to the constructor.


Public Member Functions

 CAddressType (unsigned short family, int protocol, int size, const sockaddr &wildcard)
 Constructs a CAddressType object from address meta-data.
unsigned short Family () const override
 Returns the address family of the address type.
int Protocol () const override
 Returns the protocol of the address type.
int Size () const override
 Returns the number of bytes required to store an address of this type.
const IAddressWildcardAddress () const override
 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

Static Public Member Functions

static CAddressType GetAddressType (unsigned short addressFamily)


Constructor & Destructor Documentation

CAddressType ( unsigned short  family,
int  protocol,
int  size,
const sockaddr &  wildcard 
)

Constructs a CAddressType object from address meta-data.


Member Function Documentation

CAddressType GetAddressType ( unsigned short  addressFamily  )  [static]

unsigned short Family (  )  const [override, virtual]

Returns the address family of the address type.

Implements IAddressType.

int Protocol (  )  const [override, virtual]

Returns the protocol of the address type.

Implements IAddressType.

int Size (  )  const [override, virtual]

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

Implements IAddressType.

const IAddress & WildcardAddress (  )  const [override, 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...

Implements IAddressType.

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

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

_tstring ToString (  )  const [virtual, inherited]

string ToStringA (  )  const [virtual, inherited]


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