new-threaded-server ( encoding class -- threaded-server )
Threaded servers
Prev:threaded-server
Next:handle-client* ( threaded-server -- )


Vocabulary
io.servers

Inputs and outputs
encodingan encoding descriptor
classa class
threaded-servera threaded-server


Word description
Creates a new instance of a subclass of threaded-server. Subclasses can implement the handle-client* generic word.

Definition
USING: accessors calendar io.sockets.secure kernel logging ;

IN: io.servers

: new-threaded-server ( encoding class -- threaded-server )
new "server" >>name DEBUG >>log-level
<secure-config> >>secure-config 1 minutes >>timeout
[ "No handler quotation" throw ] >>handler swap >>encoding ;