Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6INetHelpers::netAddrToWStr ( const P6NETADDR *  pAddr,
P6WCHAR pBuffer,
P6UINT32  cBuffer,
P6UINT32 pcBuffer,
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.
cBuffer[ in ] containg the validate number of available characters in pBuffer.
pcBuffer[ in ] The address of a P6UINT32 in which to place the number of characters placed in pBuffer on success. If the size of pBuffer is too small, an error is returned directly and the required size is returned in this argument. This can be NULL.
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.