X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=variables.lisp;h=f107c38bb26f2f3823febe10739147b4f162688e;hb=a4aca48b40116aa221beefeb849bd8a9e7f14fcf;hp=6c040c0de731659ac6332e9455ecbfcd4d4ecfed;hpb=315ebc6354619483aa1be1124eb3736cee6f7ab7;p=cl-modlisp.git diff --git a/variables.lisp b/variables.lisp index 6c040c0..f107c38 100644 --- a/variables.lisp +++ b/variables.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Dec 2002 ;;;; -;;;; $Id: variables.lisp,v 1.2 2003/07/05 00:51:04 kevin Exp $ +;;;; $Id: variables.lisp,v 1.5 2003/07/08 06:40:00 kevin Exp $ ;;;; ************************************************************************* (in-package #:modlisp) @@ -24,15 +24,32 @@ (defvar *apache-socket* nil "the socket stream to apache") -(defvar *listener-socket* - "Socket for the listener") - -(defvar *listener-process* nil - "Process for the listener") - -(defvar *number-server-requests*) -(defvar *number-worker-requests*) -(defvar *close-apache-socket*) - - - +(defvar *number-server-requests* 0) +(defvar *number-worker-requests* 0) +(defvar *close-apache-socket* t) + +(defclass listener () + ((port :initarg :port :accessor port) + (function :initarg :function :accessor listener-function + :initform nil) + (function-args :initarg :function-args :accessor function-args + :initform nil) + (process :initarg :process :accessor process) + (socket :initarg :socket :accessor socket) + (workers :initform nil :accessor workers + :documentation "list of worker threads") + (name :initform "" :accessor name :initarg :name) + (wait :initform nil :accessor wait :initarg :wait) + (format :initform :text :accessor listener-format :initarg :format))) + +(defvar *active-listeners* nil + "List of active listeners") + +(defclass worker () + ((listener :initarg :listener :accessor listener :initform nil) + (connection :initarg :connection :accessor connection :initform nil) + (name :initarg :name :accessor name :initform nil) + (thread-fun :initarg :thread-fun :accessor thread-fun :initform nil) + (process :initarg :process :accessor process :initform nil))) + +