X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=variables.lisp;h=adee9093a2a42536221b55ab85f4ee44109a5725;hb=3cd1fc37754064befbc4e5e9050ed8849da3ce09;hp=d9f4f1ee87e53fc02e58130e9eb5e69591ca0611;hpb=fb31277c5dace4cc9cf731c42e5034ace9dc31f2;p=cl-modlisp.git diff --git a/variables.lisp b/variables.lisp index d9f4f1e..adee909 100644 --- a/variables.lisp +++ b/variables.lisp @@ -7,44 +7,27 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Dec 2002 ;;;; -;;;; $Id: variables.lisp,v 1.4 2003/07/05 22:54:00 kevin Exp $ +;;;; $Id: variables.lisp,v 1.8 2003/07/10 18:58:29 kevin Exp $ ;;;; ************************************************************************* (in-package #:modlisp) -(defvar *listener-count* 0 - "used to name listeners") +(defconstant +default-modlisp-port+ 20123 + "Default port for listen") + +(defvar *modlisp-socket* nil + "the socket stream to modlisp") + +(defvar *number-server-requests* 0 + "number of requests for the server") + +(defvar *number-worker-requests* 0 + "number of requests for this worker process") + +(defvar *close-modlisp-socket* t + "whether to close the modlisp socket at the end of this request") -(defvar *worker-count* 0 - "used to name workers") -(defconstant +default-apache-port+ 20123 - "Default port for listen") -(defvar *apache-socket* nil - "the socket stream to apache") - -(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)))