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

CFullAddressWrapper Class Reference
[Addresses]

Inheritance diagram for CFullAddressWrapper:
Collaboration diagram for CFullAddressWrapper:

List of all members.


Detailed Description

A facade that allows a SOCADDR * to be accessed via the IFullAddress interface. Note that this has to use some hard coded assumptions to fill in the missing bits that aren't contained in a SOCADDR structure and so will be somewhat fragile in the face of new address family support.


Public Member Functions

 CFullAddressWrapper (const sockaddr *pSockAddr, int size)
unsigned short Family () const override
 Returns the address family of the address.
const sockaddr & AsSockAddr () const override
 Returns the address as a reference to a sockaddr structure.
int Size () const override
 Returns the size of the sockaddr structure required to store the address.
IAddressRefGetAddressRef () const override
 Returns a reference counted view on this address, be sure to call Release() on the IAdressRef when you're done with it.
const IAddressTypeType () const override
 Returns the address type for the address.
IFullAddressClone () const override
 Dynamically allocates a copy of this address. You are responsible for deallocating this copy with delete when you're done with it..
bool IsWildcardAddress () const override

Static Public Member Functions

static bool IsValid (const IAddress &address)
static bool IsSameAddress (const IAddress &lhs, const IAddress &rhs)


Constructor & Destructor Documentation

CFullAddressWrapper ( const sockaddr *  pSockAddr,
int  size 
)


Member Function Documentation

unsigned short Family (  )  const [override, virtual]

Returns the address family of the address.

Implements IAddress.

const sockaddr & AsSockAddr (  )  const [override, virtual]

Returns the address as a reference to a sockaddr structure.

Implements IAddress.

int Size (  )  const [override, virtual]

Returns the size of the sockaddr structure required to store the address.

Implements IAddress.

IAddressRef * GetAddressRef (  )  const [override, virtual]

Returns a reference counted view on this address, be sure to call Release() on the IAdressRef when you're done with it.

Implements IAddress.

const IAddressType & Type (  )  const [override, virtual]

Returns the address type for the address.

Implements IFullAddress.

IFullAddress * Clone (  )  const [override, virtual]

Dynamically allocates a copy of this address. You are responsible for deallocating this copy with delete when you're done with it..

Implements IFullAddress.

bool IsWildcardAddress (  )  const [override, virtual]

Implements IFullAddress.

bool IsValid ( const IAddress address  )  [static, inherited]

bool IsSameAddress ( const IAddress lhs,
const IAddress rhs 
) [static, inherited]


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