Handbook
Glossary
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.