inet4
Networking > Address specifiers

Prev:<inet> ( host port -- inet )
Next:<inet4> ( host port -- inet4 )


Vocabulary
io.sockets

Class description
IPv4 address/port number specifier for TCP/IP and UDP/IP connections. The host and port slots hold the IPv4 address and port number, respectively. New instances are created by calling <inet4>. A host of f refers to localhost, and a port of f defers the port choice until later.

Notes
Most applications do not operate on IPv4 addresses directly, and instead should use the inet address specifier, or call resolve-host.

Examples
"127.0.0.1" 8080 <inet4>


Definition


Methods