Function IPSingleton.resolveHostnameQueueItem

Creates a queue item to resolve a hostname to an IPv4 or IPv6 address depending on the type constant given as ip_type. Returns the queue ID if successful, or constant RESOLVER_INVALID_ID on error.

long resolveHostnameQueueItem (
  const(String) host,
  const(long) ip_type = 3L
) nothrow @nogc;