Functions | |
cvbres_t | GSIPv4ToString (gsipv4 IPv4, char *IPString, size_t &Length) |
Converts the given IPv4 (or subnet mask) into a string representation. More... | |
cvbres_t | GSMACToString (ILMAC MACAddress, char *MACString, size_t &Length) |
Converts the given MACAddress into a string representation. More... | |
cvbres_t | GSStringToIPv4 (const char *IPString, gsipv4 &IPv4) |
Converts the given IPString (or subnet mask) into a IP version 4 address. More... | |
cvbres_t | GSStringToMAC (const char *MACString, ILMAC &MACAddress) |
Converts the given MACString into an ILMAC representation. More... | |
cvbres_t GSIPv4ToString | ( | gsipv4 | IPv4, |
char * | IPString, | ||
size_t & | Length | ||
) |
Converts the given IPv4 (or subnet mask) into a string representation.
[in] | IPv4 | IP version 4 address to convert to string. |
[in] | IPString | Pointer of char array to contain c-string representation. nullptr for size inquiry. |
[in,out] | Length | Number of bytes allocated in IPString if it is unequal nullptr . Receives minimal number of bytes needed for full string representation including zero-termination. |
cvbres_t GSMACToString | ( | ILMAC | MACAddress, |
char * | MACString, | ||
size_t & | Length | ||
) |
Converts the given MACAddress into a string representation.
[in] | MACAddress | 6 byte MAC address to convert into a string. |
[in] | MACString | Pointer of char array to contain c-string representation. nullptr for size inquiry. |
[in,out] | Length | Number of bytes allocated in MACString if it is unequal nullptr . Receives minimal number of bytes needed for full string representation including zero-termination otherwise. |
cvbres_t GSStringToIPv4 | ( | const char * | IPString, |
gsipv4 & | IPv4 | ||
) |
Converts the given IPString (or subnet mask) into a IP version 4 address.
[in] | IPString | C-string representation of the IPv4 address, e.g. "192.168.1.1". |
[out] | IPv4 | Parsed value of the IPString. |
cvbres_t GSStringToMAC | ( | const char * | MACString, |
ILMAC & | MACAddress | ||
) |
Converts the given MACString into an ILMAC
representation.
[in] | MACString | C-string representation of a MAC address. |
[out] | MACAddress | 6 byte address representation of the MAC address. |