Next: , Previous: , Up: Networking Support   [Contents][Index]


10.4 Accepting Connections

Once a socket is bound to its interface, we have to explicitly accept connections. This task is performed by the functions we document here.

Function: extensions:accept-tcp-connection unconnected

Waits until a connection arrives on the (internet family) socket unconnected. Returns the file descriptor of the connection. These can be conveniently encapsulated using file descriptor streams; see sec-fds.

Function: extensions:accept-unix-connection unconnected

Waits until a connection arrives on the (unix family) socket unconnected. Returns the file descriptor of the connection. These can be conveniently encapsulated using file descriptor streams; see sec-fds.

Function: extensions:accept-network-stream socket &key :buffering :timeout :wait-max

Accept a connect from the specified socket and returns a stream connected to connection.