spawn-client ( remote encoding quot -- )
Networking ยป Connection-oriented networking

Prev:with-client ( remote encoding quot -- )
Next:with-local-address ( addr quot -- )


Vocabulary
io.sockets

Inputs
remotean address specifier
encodingan encoding descriptor
quota quotation


Outputs
None

Word description
Opens a network connection before spawning a thread to call the quotation in a new dynamic scope with input-stream and output-stream rebound to the network streams. The local address the socket is connected to is stored in the local-address variable, and the remote address is stored in the remote-address variable.

Errors
Throws an error if the connection cannot be established.

See also
<client>, with-client

Definition