/[LeafOK_CVS]/innwebd/base_passive.h
ViewVC logotype

Contents of /innwebd/base_passive.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations)
Fri Apr 11 17:14:49 2008 UTC (17 years, 11 months ago) by sysadm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -6 lines
Content type: text/x-chdr
Update copyright
Add extra log for exception

1 /*******************************************************/
2 /* */
3 /* LeafOK Innbbsd */
4 /* */
5 /* Copyright (C) LeafOK.com, 2003-2008 */
6 /* */
7 /* http://www.leafok.com */
8 /* */
9 /*******************************************************/
10
11 #pragma once
12 #include ".\base.h"
13 #include "afxtempl.h"
14
15 #define MAX_CLIENT 256
16
17 class base_passive :
18 public base
19 {
20 public:
21 // static UINT uThreadCount;
22 struct Access_STRUCT
23 {
24 char ip[50];
25 bool control;
26 bool get;
27 bool post;
28 bool ihave;
29 } access;
30 base_passive(void);
31 ~base_passive(void);
32 virtual int work();
33 protected:
34 CArray<Access_STRUCT*,Access_STRUCT*> access_array;
35 int s_connect(const char* hostaddr, unsigned int port);
36 int s_close(void);
37 int load_priv(void);
38 int unload_priv(void);
39 int get_priv(base_passive* p);
40 static DWORD AcceptThread(LPVOID pParam);
41 virtual int Accept(void) = 0;
42 virtual base_passive* new_client(void) = 0;
43 virtual int db_env_init(void) = 0;
44 virtual int w_call(void);
45 virtual bool check_priv(void);
46 };

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1