Public Member Functions | |
CAddressWrapper () | |
CAddressWrapper (sockaddr *pSockAddr, 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... | |
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. | |
IAddressRef * | GetAddressRef () const override |
Returns a reference counted view on this address, be sure to call Release() on the IAdressRef 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) |
CAddressWrapper | ( | ) |
CAddressWrapper | ( | sockaddr * | pSockAddr, | |
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...
unsigned short Family | ( | ) | const [override, virtual] |
const sockaddr & AsSockAddr | ( | ) | const [override, virtual] |
int Size | ( | ) | const [override, virtual] |
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.