inet
Networking ยป Address specifiers

Prev:<local> ( path -- addrspec )
Next:<inet> ( host port -- inet )


Vocabulary
io.sockets

Class description
Host name/port number specifier for TCP/IP and UDP/IP connections. The host and port slots hold the host name and port name or number, respectively. New instances are created by calling <inet>.

Notes
This address specifier is only supported by <client>, which calls resolve-host to obtain a list of IP addresses associated with the host name, and attempts a connection to each one in turn until one succeeds. Other network words do not accept this address specifier, and resolve-host must be called directly; it is then up to the application to pick the correct address from the (possibly several) addresses associated to the host name.

Examples
"www.apple.com" 80 <inet>


Definition


Methods