This method is used to convert an IP address string into a P6R::P6NETADDR.
- Parameters
-
pszAddr | A pointer to an ASCIIZ string representing the IP address. IPv4 This must be in the standard dotted-quad notation and can have an optional port appended with a colun. For example: "1.2.3.4" or "1.2.3.4:110" The follow formats are currently suported:
String | Format |
255.255.255.255 | Decimal |
0xff.0xff.0xff.0xff | Hex |
0377.0377.0377.0377 | Octal |
0377.255.0xff.255 | Mixed |
IPv6 Currently not implemented. |
pAddr | A pointer to an P6R::P6NETADDR in which the converted address information will be placed. |
- Returns
Success | P6R::eOk | Success. |
Failure | P6R::eInvalidArg | pszAddr or pAddr is NULL |
P6R::eFormatError | The string passed in pszAddr is not in the correct format and could not be converted. |