Client handler quotation
Threaded servers ยป Threaded server configuration

Prev:Client stream parameters


The handler slot of a threaded server instance should be set to a quotation which handles client connections. Client handlers are run in their own thread, with the following variables rebound:
โ€ข input-stream
โ€ข output-stream
โ€ข local-address
โ€ข remote-address
โ€ข threaded-server

An alternate way to implement client handlers is to subclass threaded-server, and define a method on handle-client*.

The two methods are equivalent, representing a functional versus an object-oriented approach to the problem.