X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=variables.lisp;h=d9f4f1ee87e53fc02e58130e9eb5e69591ca0611;hb=64f9fdd7b3598b0717635d195cc37f025d1c887e;hp=20239a17601fde28fe0d41a9c3c3a974186a4872;hpb=3e6b59f4b9f90bd9fc40b997273c267b9793f401;p=cl-modlisp.git diff --git a/variables.lisp b/variables.lisp index 20239a1..d9f4f1e 100644 --- a/variables.lisp +++ b/variables.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Dec 2002 ;;;; -;;;; $Id: variables.lisp,v 1.3 2003/07/05 01:34:42 kevin Exp $ +;;;; $Id: variables.lisp,v 1.4 2003/07/05 22:54:00 kevin Exp $ ;;;; ************************************************************************* (in-package #:modlisp) @@ -24,15 +24,27 @@ (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* 0) (defvar *number-worker-requests* 0) (defvar *close-apache-socket* t) - - +(defclass listener () + ((process :initarg process :accessor process) + (socket :initarg socket :accessor socket) + (workers :initform nil :accessor workers + :documentation "list of worker threads"))) + +(defvar *active-listeners* nil + "List of active listeners") + +(defclass worker () + ((listener :initarg :listener :accessor listener :initform nil) + (name :initarg :name :accessor name :initform nil) + (func :initarg :func :accessor func :initform nil) + (function-args :initarg :function-args :accessor function-args + :initform nil) + (socket :initarg :socket :accessor socket :initform nil) + (thread-fun :initarg :thread-fun :accessor thread-fun :initform nil) + (process :initarg :process :accessor process :initform nil))) + +