| 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 |
|
|
| 11 |
#pragma once |
#pragma once |
| 12 |
|
#include "base_passive.h" |
| 13 |
|
|
| 14 |
#include "resource.h" |
class innd : |
| 15 |
|
public base_passive |
| 16 |
|
{ |
| 17 |
|
public: |
| 18 |
|
innd(void); |
| 19 |
|
~innd(void); |
| 20 |
|
int Startup(void); |
| 21 |
|
int Shutdown(void); |
| 22 |
|
bool IsShutdown(void); |
| 23 |
|
private: |
| 24 |
|
static bool thread_terminate; |
| 25 |
|
int Accept(void); |
| 26 |
|
innd* new_client(void); |
| 27 |
|
int cmd_list(void); |
| 28 |
|
int cmd_ihave(const char* msg_id); |
| 29 |
|
int db_env_init(void); |
| 30 |
|
bool check_priv(void); |
| 31 |
|
}; |