From 7e0fab2dc64e49c1ba2c80ba0a5acc6a9e0a22f6 Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Thu, 11 Jun 2009 20:20:38 -0500 Subject: [PATCH] use initital-quot: in threaded-server tuple declaration --- basis/io/servers/connection/connection.factor | 23 +++++++------------ 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/basis/io/servers/connection/connection.factor b/basis/io/servers/connection/connection.factor index df6c21e7cc..de75165c7a 100644 --- a/basis/io/servers/connection/connection.factor +++ b/basis/io/servers/connection/connection.factor @@ -11,17 +11,17 @@ combinators.short-circuit ; IN: io.servers.connection TUPLE: threaded-server -name -log-level +{ name initial: "server" } +{ log-level initial: DEBUG } secure insecure -secure-config -sockets +{ secure-config initial-quot: [ ] } +{ sockets initial-quot: [ V{ } clone ] } max-connections semaphore -timeout +{ timeout initial-quot: [ 1 minutes ] } encoding -handler -ready ; +{ handler initial: [ "No handler quotation" throw ] } +{ ready initial-quot: [ ] } ; : local-server ( port -- addrspec ) "localhost" swap ; @@ -29,14 +29,7 @@ ready ; : new-threaded-server ( encoding class -- threaded-server ) new - swap >>encoding - "server" >>name - DEBUG >>log-level - 1 minutes >>timeout - V{ } clone >>sockets - >>secure-config - [ "No handler quotation" throw ] >>handler - >>ready ; inline + swap >>encoding ; : ( encoding -- threaded-server ) threaded-server new-threaded-server ;