High Performance OPC UA Server SDK  1.1.0.158
hostname

Functionality for retrieving local hostname information. More...

Functions

int ua_get_hostname (char *hostname, size_t hostname_len)
 Returns the local hostname. More...
 
int ua_get_fqdn (char *fqdn, size_t fqdn_len)
 Returns the fully qualified domain name. More...
 

Detailed Description

Functionality for retrieving local hostname information.

Function Documentation

int ua_get_fqdn ( char *  fqdn,
size_t  fqdn_len 
)

Returns the fully qualified domain name.

Parameters
fqdnPointer to string which receives the FQDN.
fqdn_lenSize 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
hostnamePointer to string which receives the hostname.
hostname_lenSize of hostname in bytes.
Returns
Zero on success. UA_EBADTRUNCATED if hostname_len is too short. UA_EBADSYSCALL if underlying OS calls went wrong.