Functions | |
uint32_t | gethostbyname (char *hostname, int32_t *timeout) |
Get the ip address of clients specified by name. More... | |
To enable the DNS lookup system net_init() must be called with parameter DNS_ENABLE and a DNS server address (ref. Software Initialization):
DNS server = 192.168.1.1
A hostname is automatically resolved when specified with socket_open(). E.g.:
Also gethostbyname() can be used to determine the destination IP address:
hostname | - host name string |
timeout | - maximum loop count for this blocking function |
Get the ip address of clients specified by name