| 1 |
/*******************************************************/
|
| 2 |
/* */
|
| 3 |
/* LeafOK Innbbsd */
|
| 4 |
/* Copyright (C) LeafOK.com, 2003-2004 */
|
| 5 |
/* */
|
| 6 |
/* Programmed by Leaf */
|
| 7 |
/* E-mail:leaflet@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_passive.h"
|
| 17 |
|
| 18 |
class innd :
|
| 19 |
public base_passive
|
| 20 |
{
|
| 21 |
public:
|
| 22 |
innd(void);
|
| 23 |
~innd(void);
|
| 24 |
int Startup(void);
|
| 25 |
int Shutdown(void);
|
| 26 |
bool IsShutdown(void);
|
| 27 |
private:
|
| 28 |
static bool thread_terminate;
|
| 29 |
int Accept(void);
|
| 30 |
innd* new_client(void);
|
| 31 |
int cmd_list(void);
|
| 32 |
int cmd_ihave(const char* msg_id);
|
| 33 |
int db_env_init(void);
|
| 34 |
bool check_priv(void);
|
| 35 |
};
|