[hunchentoot-devel] How to capture the server instance
Edi Weitz
edi at agharta.de
Thu Apr 24 07:17:23 UTC 2008
On Thu, 24 Apr 2008 15:05:44 +0800, "Rommel Martinez" <ebzzry at 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))
?
More information about the Tbnl-devel
mailing list