<client> ( remote encoding -- stream local )
Networking > Connection-oriented networking

Next:with-client ( remote encoding quot -- )


Vocabulary
io.sockets

Inputs and outputs
remotean address specifier
encodingan encoding descriptor
streama bidirectional stream
localan address specifier


Word description
Opens a network connection and outputs a bidirectional stream using the given encoding, together with the local address the socket was bound to.

Errors
Throws an error if the connection cannot be established.

Notes
The with-client word is easier to use in most situations.

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


Definition