virtual P6R::P6ERR P6R::p6INetHelpers::netAddrToWStr ( const P6R::P6NETADDR *  pAddr,
P6R::P6WCHAR *  pBuffer,
P6R::P6UINT32 *  pcBuffer,
P6R::P6BOOL  bAddPort 
) [pure virtual]

Converts a P6NETADDR struct into a wide character string representation of the specified address.

The string will be in standard dotted-quad notation with optional port information appended after a colun.

Parameters:
pAddr [in] A pointer to the P6NETADDR to be converted.
pBuffer [out] A pointer to a P6R::P6WCHAR * buffer in which will be placed the string representation of the specified P6NETADDR.
pcBuffer [IN/OUT] A pointer to a P6UINT32 which on entry should contain the size of pBuffer in characters. On success, the number of characters placed in pBuffer will be returned in this argument. If the size of pBuffer is too small, an error is returned directly and the required size is returned in this argument.
bAddPort [in] A P6BOOL indicating whether port information should be appended to the address string.
Returns:
SuccessP6R::eOkSuccess.
FailureP6R::eInvalidArgpAddr, pBuffer and/or pcBuffer is NULL.
P6R::eTooSmallpBuffer is too small to store the resulting string.
P6R::eBadAddrpAddr->inet.family is not P6AF_INET
P6R::eNotImplementedSupport for P6AF_INET6 is not currently implemented.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Copyright © 2004 - 2010 P6R Inc. - All Rights Reserved.