Functionality for retrieving local hostname information.
More...
Functionality for retrieving local hostname information.
int ua_get_fqdn |
( |
char * |
fqdn, |
|
|
size_t |
fqdn_len |
|
) |
| |
Returns the fully qualified domain name.
- Parameters
-
fqdn | Pointer to string which receives the FQDN. |
fqdn_len | Size of fqdn in bytes. |
- Returns
- Zero on success. UA_EBADTRUNCATED if hostname_len is too short. UA_EBADSYSCALL if underlying OS calls went wrong.
int ua_get_hostname |
( |
char * |
hostname, |
|
|
size_t |
hostname_len |
|
) |
| |
Returns the local hostname.
- Parameters
-
hostname | Pointer to string which receives the hostname. |
hostname_len | Size of hostname in bytes. |
- Returns
- Zero on success. UA_EBADTRUNCATED if hostname_len is too short. UA_EBADSYSCALL if underlying OS calls went wrong.