Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6INetHelpers::strToNetAddr ( const P6CHAR pszAddr,
P6NETADDR *  pAddr 
)
pure virtual

This method is used to convert an IP address string into a P6R::P6NETADDR.

Parameters
pszAddrA 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:
StringFormat
255.255.255.255Decimal
0xff.0xff.0xff.0xffHex
0377.0377.0377.0377Octal
0377.255.0xff.255Mixed
IPv6 Currently not implemented.
pAddrA pointer to an P6R::P6NETADDR in which the converted address information will be placed.
Returns
SuccessP6R::eOkSuccess.
FailureP6R::eInvalidArgpszAddr or pAddr is NULL
P6R::eFormatErrorThe string passed in pszAddr is not in the correct format and could not be converted.