resolveHost

Resolves the given host name/IP address string.

Setting use_dns to false will only allow IP address strings but also guarantees that the call will not block.

  1. NetworkAddress resolveHost(string host, AddressFamily address_family, bool use_dns)
    @safe
    resolveHost
    (
    string host
    ,
    AddressFamily address_family = AddressFamily.UNSPEC
    ,
    bool use_dns = true
    )
  2. NetworkAddress resolveHost(string host, ushort address_family, bool use_dns)

Meta