resolve-host ( addrspec -- seq )
Networking > Address specifiers

Prev:<inet6> ( host port -- inet6 )


Vocabulary
io.sockets

Inputs and outputs
addrspecan address specifier
seqa sequence of address specifiers


Word description
Resolves host names to IP addresses.

Errors
Throws an addrinfo-error if the host name cannot be resolved.

Examples
"www.facebook.com" resolve-host . { T{ ipv4 { host "31.13.64.32" } } }


Definition

GENERIC: resolve-host ( addrspec -- seq )


Methods