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

Diff of /innwebd/base.h

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

Revision 1.1 by sysadm, Fri Jul 2 11:22:00 2004 UTC Revision 1.2 by sysadm, Sat Jul 3 13:56:04 2004 UTC
# Line 16  Line 16 
16    
17  #include "afxdb.h"  #include "afxdb.h"
18  #include "winsock2.h"  #include "winsock2.h"
19    #include ".\thread_pool.h"
20    
21  class base  class base
22  {  {
# Line 25  public: Line 26  public:
26          virtual void configure(const char* innd_id, const char* innd_name, const char* innd_server, unsigned long innd_uid, const char* w_address, unsigned int w_port, const char* w_conn_str);          virtual void configure(const char* innd_id, const char* innd_name, const char* innd_server, unsigned long innd_uid, const char* w_address, unsigned int w_port, const char* w_conn_str);
27          int begin(void);          int begin(void);
28          int end(void);          int end(void);
29          bool IsRunning(void);          inline bool IsRunning(void)
30            {
31                    return this->running;
32            }
33            inline base* GetParentThread(void)
34            {
35                    return this->p_ParentThread;
36            }
37            inline void SetParentThread(base* p_ParentThread)
38            {
39                    this->p_ParentThread = p_ParentThread;
40            }
41            inline thread_pool* GetThreadPool(void)
42            {
43                    return this->p_ThreadPool;
44            }
45            inline void SetThreadPool(thread_pool* p_ThreadPool)
46            {
47                    this->p_ThreadPool = p_ThreadPool;
48            }
49  protected:  protected:
50            base* p_ParentThread;
51            thread_pool* p_ThreadPool;
52          SOCKET s;          SOCKET s;
53          SOCKADDR sockaddr;          SOCKADDR sockaddr;
54          CDatabase Db;          CDatabase Db;


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

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