new-threaded-server ( encoding class -- threaded-server )
Threaded servers
Prev:
threaded-server
Next:
handle-client* ( threaded-server -- )
Vocabulary
io.servers.connection
Inputs and outputs
encoding
an encoding descriptor
class
a
class
threaded-server
a
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
concurrency.flags
io.sockets.secure
kernel
logging
;
IN:
io.servers.connection
:
new-threaded-server
( encoding class -- threaded-server )
new
"server"
>>name
DEBUG
>>log-level
<secure-config>
>>secure-config
V{
}
clone
>>sockets
1
minutes
>>timeout
[
"No handler quotation"
throw
]
>>handler
<flag>
>>ready
swap
>>encoding
;