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.