|
NAZARA_NETWORK_API const char * | Nz::ErrorToString (Nz::ResolveError resolveError) |
| Returns the text representation of an error. More...
|
|
NAZARA_NETWORK_API const char * | Nz::ErrorToString (Nz::SocketError socketError) |
| Returns the text representation of an error. More...
|
|
NAZARA_NETWORK_API bool | Nz::ParseIPAddress (const char *addressPtr, UInt8 result[16], UInt16 *port, bool *isIPv6, const char **endOfRead) |
| Parse a textual IPv4 or IPv6 address. More...
|
|
Network/System module including classes to handle networking elements...
◆ ErrorToString() [1/2]
const char * Nz::ErrorToString |
( |
Nz::ResolveError |
resolveError | ) |
|
Returns the text representation of an error.
- Returns
- Text representation of an error
- Parameters
-
resolveError | Error enumeration |
◆ ErrorToString() [2/2]
const char * Nz::ErrorToString |
( |
Nz::SocketError |
socketError | ) |
|
Returns the text representation of an error.
- Returns
- Text representation of an error
- Parameters
-
socketError | Error enumeration |
◆ ParseIPAddress()
bool Nz::ParseIPAddress |
( |
const char * |
addressPtr, |
|
|
UInt8 |
result[16], |
|
|
UInt16 * |
port, |
|
|
bool * |
isIPv6, |
|
|
const char ** |
endOfRead |
|
) |
| |
Parse a textual IPv4 or IPv6 address.
- Returns
- true If successful
From http://rosettacode.org/wiki/Parse_an_IP_Address Parse a textual IPv4 or IPv6 address, optionally with port, into a binary array (for the address, in host order), and an optionally provided port. Also, indicate which of those forms (4 or 6) was parsed.
- Parameters
-
addressPtr | C-string which symbolizes the ip adress |
result | Byte array to return the result in |
port | Optional argument to resolve according to a specific port |
isIPv6 | Optional argument to determine if the address is IPv6 |
endOfRead | Optional argument to determine where parsing stopped |