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

Contents of /innwebd/base_passive.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations)
Sat Jul 3 13:56:04 2004 UTC (21 years, 8 months ago) by sysadm
Branch: MAIN
Changes since 1.2: +1 -2 lines
Content type: text/x-chdr
Add thread_pool

1 /*******************************************************/
2 /* */
3 /* LeafOK Innd */
4 /* Copyright (C) LeafOK.com, 2003-2004 */
5 /* */
6 /* Programmed by Leaf */
7 /* E-mail:leaf@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 };

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