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

Contents of /innwebd/base_passive.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations)
Sat Feb 26 16:10:25 2005 UTC (21 years ago) by sysadm
Branch: MAIN
CVS Tags: innwebd_1-4-16-0_MIL
Changes since 1.5: +1 -1 lines
Content type: text/x-chdr
Copyright update

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

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