vibe.d beta banner
get vibe.d
0.7.30

Function 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.

Prototypes

NetworkAddress resolveHost(
  string host,
  std.socket.AddressFamily address_family = cast(AddressFamily)0,
  bool use_dns = true
);

NetworkAddress resolveHost(
  string host,
  ushort address_family,
  bool use_dns = true
);
block ddox.authorsblock ddox.copyrightblock ddox.license
Authors
Copyright
License