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

Diff of /innwebd/base_passive.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 by sysadm, Sat Jul 3 05:22:16 2004 UTC Revision 1.7 by sysadm, Fri Apr 11 17:14:49 2008 UTC
# Line 1  Line 1 
1  /*******************************************************/  /*******************************************************/
2  /*                                                     */  /*                                                     */
3  /*  LeafOK Innd                                        */  /*  LeafOK Innbbsd                                     */
 /*  Copyright (C) LeafOK.com, 2003-2004                */  
4  /*                                                     */  /*                                                     */
5  /*  Programmed by Leaf                                 */  /*  Copyright (C) LeafOK.com, 2003-2008                */
 /*  E-mail:leaf@leafok.com  QQ:6049044                 */  
6  /*                                                     */  /*                                                     */
7  /*  http://bbs.leafok.com                              */  /*  http://www.leafok.com                              */
 /*  http://bbs.leafok.net                              */  
 /*  http://bbs.fenglin.info                            */  
8  /*                                                     */  /*                                                     */
9  /*******************************************************/  /*******************************************************/
10    
# Line 16  Line 12 
12  #include ".\base.h"  #include ".\base.h"
13  #include "afxtempl.h"  #include "afxtempl.h"
14    
15  #define MAX_THREAD 256  #define MAX_CLIENT 256
16    
17  class base_passive :  class base_passive :
18          public base          public base
19  {  {
20  public:  public:
21          static UINT uThreadCount;  //      static UINT uThreadCount;
22          struct Access_STRUCT          struct Access_STRUCT
23          {          {
24                  char ip[50];                  char ip[50];
# Line 35  public: Line 31  public:
31          ~base_passive(void);          ~base_passive(void);
32          virtual int work();          virtual int work();
33  protected:  protected:
         base_passive* p_ParentThread;  
34          CArray<Access_STRUCT*,Access_STRUCT*> access_array;          CArray<Access_STRUCT*,Access_STRUCT*> access_array;
35          int s_connect(const char* hostaddr, unsigned int port);          int s_connect(const char* hostaddr, unsigned int port);
36          int s_close(void);          int s_close(void);
# Line 47  protected: Line 42  protected:
42          virtual base_passive* new_client(void) = 0;          virtual base_passive* new_client(void) = 0;
43          virtual int db_env_init(void) = 0;          virtual int db_env_init(void) = 0;
44          virtual int w_call(void);          virtual int w_call(void);
45            virtual bool check_priv(void);
46  };  };


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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