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

Annotation of /innwebd/base_passive.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations)
Sat Jul 3 08:47:07 2004 UTC (21 years, 8 months ago) by sysadm
Branch: MAIN
Changes since 1.1: +1 -1 lines
Content type: text/x-chdr
Rename MAX_THREAD to MAX_CLIENT

1 sysadm 1.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 sysadm 1.2 #define MAX_CLIENT 256
20 sysadm 1.1
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     base_passive* p_ParentThread;
39     CArray<Access_STRUCT*,Access_STRUCT*> access_array;
40     int s_connect(const char* hostaddr, unsigned int port);
41     int s_close(void);
42     int load_priv(void);
43     int unload_priv(void);
44     int get_priv(base_passive* p);
45     static DWORD AcceptThread(LPVOID pParam);
46     virtual int Accept(void) = 0;
47     virtual base_passive* new_client(void) = 0;
48     virtual int db_env_init(void) = 0;
49     virtual int w_call(void);
50     };

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