/[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.5 by sysadm, Thu Sep 16 15:40:37 2004 UTC
# Line 1  Line 1 
1  /*******************************************************/  /*******************************************************/
2  /*                                                     */  /*                                                     */
3  /*  LeafOK Innd                                        */  /*  LeafOK Innbbsd                                     */
4  /*  Copyright (C) LeafOK.com, 2003-2004                */  /*  Copyright (C) LeafOK.com, 2003-2004                */
5  /*                                                     */  /*                                                     */
6  /*  Programmed by Leaf                                 */  /*  Programmed by Leaf                                 */
7  /*  E-mail:leaf@leafok.com  QQ:6049044                 */  /*  E-mail:leaflet@leafok.com  QQ:6049044              */
8  /*                                                     */  /*                                                     */
9  /*  http://bbs.leafok.com                              */  /*  http://bbs.leafok.com                              */
10  /*  http://bbs.leafok.net                              */  /*  http://bbs.leafok.net                              */
# Line 16  Line 16 
16  #include ".\base.h"  #include ".\base.h"
17  #include "afxtempl.h"  #include "afxtempl.h"
18    
19  #define MAX_THREAD 256  #define MAX_CLIENT 256
20    
21  class base_passive :  class base_passive :
22          public base          public base
23  {  {
24  public:  public:
25          static UINT uThreadCount;  //      static UINT uThreadCount;
26          struct Access_STRUCT          struct Access_STRUCT
27          {          {
28                  char ip[50];                  char ip[50];
# Line 35  public: Line 35  public:
35          ~base_passive(void);          ~base_passive(void);
36          virtual int work();          virtual int work();
37  protected:  protected:
         base_passive* p_ParentThread;  
38          CArray<Access_STRUCT*,Access_STRUCT*> access_array;          CArray<Access_STRUCT*,Access_STRUCT*> access_array;
39          int s_connect(const char* hostaddr, unsigned int port);          int s_connect(const char* hostaddr, unsigned int port);
40          int s_close(void);          int s_close(void);
# Line 47  protected: Line 46  protected:
46          virtual base_passive* new_client(void) = 0;          virtual base_passive* new_client(void) = 0;
47          virtual int db_env_init(void) = 0;          virtual int db_env_init(void) = 0;
48          virtual int w_call(void);          virtual int w_call(void);
49            virtual bool check_priv(void);
50  };  };


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

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