inet/zz_access_log.h

Go to the documentation of this file.
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 2000-2006, Toni Thomsson <toni@tonjac.org> 
00007 */
00008 
00015 #ifndef zz_access_log_h
00016 #define zz_access_log_h
00017 
00018 #include <zz_http_request.h>
00019 #include <zz_file.h>
00020 #include <zz_win_threadmutex.h>
00021 
00022 class ZZ_API CzzAccessLog
00023 {
00024 public:
00025 
00031         CzzAccessLog( const char* file );
00032         virtual ~CzzAccessLog();
00033 
00041         virtual void write( CzzHTTPRequest* req, int responce_code, int size );
00042 
00043 protected:
00044 private:
00045 
00046         unsigned __int64  getTime( void );
00047         int CzzAccessLog::getClfTime( char *buffer, unsigned len, struct tm *t );
00048 
00049         CzzFile m_File;
00050         static CzzWinThreadMutex m_Mutex;
00051 };
00052 
00053 #endif // zz_access_log_h

Generated on Thu Sep 21 21:45:42 2006 for tonjac.org MINI/C++ library by  doxygen 1.4.6-NO