[hunchentoot-devel] How to capture the server instance

Is there a way to "capture" the server instance of Hunchentoot when I start the server like the following (yes I haven't bound it to a variable using say DEFVAR or DEFPARAMETER): CL-USER> (hunchentoot:start-server :port 9000) #<HUNCHENTOOT::SERVER {61917E79}> So that I can do something like the following when I want to stop the server: CL-USER> (hunchentoot:stop-server *foo*) -- Rommel M. Martinez <ebzzry@gmail.com>

On Thu, 24 Apr 2008 15:05:44 +0800, "Rommel Martinez" <ebzzry@gmail.com> wrote:
Is there a way to "capture" the server instance of Hunchentoot when I start the server like the following (yes I haven't bound it to a variable using say DEFVAR or DEFPARAMETER):
CL-USER> (hunchentoot:start-server :port 9000) #<HUNCHENTOOT::SERVER {61917E79}>
So that I can do something like the following when I want to stop the server:
CL-USER> (hunchentoot:stop-server *foo*)
What's wrong with (setq *foo* (hunchentoot:start-server :port 9000)) ?

CL binds previous three returned values in the REPL to *, **, and *** respectivly. 2008/4/24, Rommel Martinez <ebzzry@gmail.com>:
Is there a way to "capture" the server instance of Hunchentoot when I start the server like the following (yes I haven't bound it to a variable using say DEFVAR or DEFPARAMETER):
CL-USER> (hunchentoot:start-server :port 9000) #<HUNCHENTOOT::SERVER {61917E79}>
So that I can do something like the following when I want to stop the server:
CL-USER> (hunchentoot:stop-server *foo*)
-- Rommel M. Martinez <ebzzry@gmail.com> _______________________________________________ tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel
-- With Best Regards, Stas.
participants (3)
-
Edi Weitz
-
Rommel Martinez
-
Stas Boukarev