accept ( server -- client remote )
Networking > Connection-oriented networking

Prev:<server> ( addrspec encoding -- server )


Vocabulary
io.sockets

Inputs and outputs
servera handle
clienta bidirectional stream
remotean address specifier


Word description
Waits for a connection to a server socket created by <server>, and outputs a bidirectional stream when the connection has been established. The encoding of this stream is the one that was passed to the server constructor.

Errors
Throws an error if the server socket is closed or otherwise is unavailable.

Definition