Go to the source code of this file.
int hg_get_name_from_ip |
( |
struct in6_addr * |
ip, |
|
|
char * |
hostname, |
|
|
int |
sz |
|
) |
| |
- Parameters
-
[out] | hostname | Pointer to buffer that will contain hostname if successful. |
[in] | sz | Size of hostname buffer hostname. |
- Returns
- Always returns 0.
void hg_host_cleanup |
( |
struct hg_host * |
| ) |
|
void hg_hosts_cleanup |
( |
struct hg_host * |
hosts | ) |
|
Frees all hosts that are linked in hosts, using hg_host_cleanup.
- Parameters
-
char* hg_name_to_domain |
( |
char * |
hostname | ) |
|
input : hostname (ie : www.if.arf.com) returns: if.arf.com
If the input is arf.com returns : NULL
int hg_resolv |
( |
char * |
, |
|
|
struct in6_addr * |
, |
|
|
int |
|
|
) |
| |
Resolve an hostname.
- Todo:
- getaddrinfo: host might resolve to more than one ip. In this case (ai->ai_next != NULL). This should somehow be respected, probably needs changes to interface.
int hg_valid_ip_addr |
( |
char * |
hostname | ) |
|
- Returns
- 0 if adress info for hostname could be found, 1 otherwise.