CAddressWrapper Class Reference
[Addresses]

Inheritance diagram for CAddressWrapper:

Inheritance graph
[legend]
Collaboration diagram for CAddressWrapper:

Collaboration graph
[legend]

List of all members.


Detailed Description

A facade that allows a SOCADDR * to be accessed via the IAddress interface.


Public Member Functions

 CAddressWrapper ()
 CAddressWrapper (sockaddr *pSockAddr, const int size)
sockaddr ** GetStorage ()
 Provides access to the SOCKADDR * for update.
int * GetSize ()
 Provides access to the size of the address for update.
CFullAddressWrapper FabricateFullAddress () const
 Fabricate a full address from the wrapped address, this currently needs to be changed each time we desire support for a new address type, which is less than ideal...
virtual short Family () const
 Returns the address family of the address.
virtual const sockaddr & AsSockAddr () const
 Returns the address as a reference to a sockaddr structure.
virtual int Size () const
 Returns the size of the sockaddr structure required to store the address.
virtual IAddressRefGetAddressRef () const
 Returns a reference counted view on this address, be sure to call Release() on the IAdressRef when you're done with it.


Constructor & Destructor Documentation

CAddressWrapper (  ) 

CAddressWrapper ( sockaddr *  pSockAddr,
const int  size 
)


Member Function Documentation

sockaddr ** GetStorage (  ) 

Provides access to the SOCKADDR * for update.

int * GetSize (  ) 

Provides access to the size of the address for update.

CFullAddressWrapper FabricateFullAddress (  )  const

Fabricate a full address from the wrapped address, this currently needs to be changed each time we desire support for a new address type, which is less than ideal...

short Family (  )  const [virtual]

Returns the address family of the address.

Implements IAddress.

const sockaddr & AsSockAddr (  )  const [virtual]

Returns the address as a reference to a sockaddr structure.

Implements IAddress.

int Size (  )  const [virtual]

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

Implements IAddress.

IAddressRef * GetAddressRef (  )  const [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.


Generated on Thu Mar 26 16:39:51 2009 for JetByte Socket Tools - v6.0 by  doxygen 1.5.3