|
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:
Success | P6R::eOk | Success. |
Failure | P6R::eInvalidArg | pAddr, pBuffer and/or pcBuffer is NULL. |
P6R::eTooSmall | pBuffer is too small to store the resulting string. |
P6R::eBadAddr | pAddr->inet.family is not P6AF_INET |
P6R::eNotImplemented | Support for P6AF_INET6 is not currently implemented. |
|