Scribit Andrei Stebakov dies 12/04/2007 hora 16:13:
So I need to keep track of all servers that I start and for each one return it's dispatch-table something like this?:
I suppose you could take advantage of the fact the global variables are dynamic ones:
(defvar *dispatch-table1* ...) (defvar *dispatch-table2* ...)
(let ((*dispatch-table* *dispatch-table1*)) (start-server :port 8001))
(let ((*dispatch-table* *dispatch-table2*)) (start-server :port 8002))
I didn't try this code, though, it's just what seemed natural to me for this use.
Quickly, Pierre