silc_net_gethostbyname_async
SYNOPSIS
void silc_net_gethostbyname_async(const char *name, SilcBool prefer_ipv6, SilcSchedule schedule, SilcNetResolveCallback completion, void *context)
DESCRIPTION
Asynchronously resolves the IP address of the hostname indicated by the `name'. This function returns immediately, and the `completion' callback will be called after the resolving is completed. If `schedule' is NULL this will call silc_schedule_get_global to try to get global scheduler.
If the `prefer_ipv6' is TRUE then this will return IPv6 address if it finds. If FALSE if returns IPv4 address even if it found IPv6 address also.