r5239: *** empty log message ***
[cl-modlisp.git] / variables.lisp
index 2edf38bf0093d234c7f096c88f45efdde03135c9..d9f4f1ee87e53fc02e58130e9eb5e69591ca0611 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Dec 2002
 ;;;;
-;;;; $Id: variables.lisp,v 1.1 2003/07/04 22:41:06 kevin Exp $
+;;;; $Id: variables.lisp,v 1.4 2003/07/05 22:54:00 kevin Exp $
 ;;;; *************************************************************************
 
 (in-package #:modlisp)
 (defvar *worker-count* 0
   "used to name workers")
 
-(defvar *listener-socket*
-  "Socket for the listener")
-
-(defvar *listener-proc* nil
-  "Process for the listener")
-
 (defconstant +default-apache-port+ 20123
   "Default port for listen")
 
 (defvar *apache-socket* nil
   "the socket stream to apache")
 
-(defvar *close-apache-socket* nil
-  "set to T if you want to close the socket to apache after
-the current command")
-
-(defvar *apache-nb-use-socket* 0
-  "the number of requests sent in this socket")
-
+(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)))
+
+