| 1 |
/*******************************************************/
|
| 2 |
/* */
|
| 3 |
/* LeafOK Innbbsd */
|
| 4 |
/* Copyright (C) LeafOK.com, 2003-2005 */
|
| 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 |
#include ".\bbsd.h"
|
| 18 |
#include ".\innd.h"
|
| 19 |
#include ".\outd.h"
|
| 20 |
|
| 21 |
class controld :
|
| 22 |
public base_passive
|
| 23 |
{
|
| 24 |
public:
|
| 25 |
controld(void);
|
| 26 |
~controld(void);
|
| 27 |
bbsd bbsd;
|
| 28 |
innd innd;
|
| 29 |
outd outd;
|
| 30 |
int Startup(void);
|
| 31 |
int Shutdown(void);
|
| 32 |
bool IsShutdown(void);
|
| 33 |
int load_conf(const char* conf_file);
|
| 34 |
void StartupDelay(void);
|
| 35 |
void StartupChild(void);
|
| 36 |
void ShutdownChild(void);
|
| 37 |
int InitThreadPool(void);
|
| 38 |
int CleanupThreadPool(void);
|
| 39 |
private:
|
| 40 |
static bool thread_terminate;
|
| 41 |
bool bbsd_startup;
|
| 42 |
bool innd_startup;
|
| 43 |
bool outd_startup;
|
| 44 |
int startup_delay;
|
| 45 |
int Accept(void);
|
| 46 |
controld* new_client(void);
|
| 47 |
int db_env_init(void);
|
| 48 |
bool check_priv(void);
|
| 49 |
};
|