00001 /* libzzinet 00002 * 00003 * This program is distributed under the GNU General Public License, version 2. 00004 * A copy of this license is included with this source. 00005 * 00006 * Copyright 2004-2006, Toni Thomsson <toni@tonjac.org> 00007 */ 00008 00013 #ifndef zz_mini_webserver_h 00014 #define zz_mini_webserver_h 00015 00016 #include <zz_http_server.h> 00017 #include <zz_log.h> 00018 #include <zz_win_thread.h> 00019 #include <windows.h> 00020 #include <zz_access_log.h> 00021 00022 #define MAXTHREADS 30 00023 typedef CzzWinThread* THREADLIST[MAXTHREADS]; 00024 00025 class CzzMiniWebserver : public CzzWinThread, CzzHTTPServer 00026 { 00027 public: 00028 00029 // Construction 00030 CzzMiniWebserver( CzzAccessLog* log ); 00031 virtual ~CzzMiniWebserver(); 00032 00033 // Listen for a request 00034 void listen( void ); 00035 virtual void OnStart( void ); 00036 00037 private: 00038 00039 void updateThreadList( CzzWinThread* newjob ); 00040 THREADLIST m_Services; 00041 }; 00042 00043 #endif // zz_mini_webserver_h
1.4.6-NO