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
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. |