forked from westlab/negi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Proc.C
62 lines (50 loc) · 1.13 KB
/
Proc.C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
* ** Copyright (C) 2012 Shinichi Ishida, All Rights Reserved.
* **
* ** Please see the LICENSE file distributed with this source
* ** code archive for information covering the modification and
* ** redistribution of this file and binaries built from it.
* */
/*
* $Id: Proc.C,v 5.4 2012-05-09 17:24:13 sin Exp $
*/
#include "Proc.H"
#include "Global.H"
Proc::Proc(){
return;
}
Proc::~Proc(){
return;
}
void Proc::Init(){
}
void Proc::InitManager(){
// lock shem
// initialize shem
// read config
// unlock shem
config = new Config;
packet_pool = new PacketPool;
rule_pool = new RulePool;
stream_rebuild = new StreamRebuild;
ip_filter = new IpFilter;
match_pre_filter = new MatchPreFilter;
extractor = new Extractor;
stream_pool = new StreamPool;
#ifdef USE_POSTGRES
pgsql = new Pgsql;
pgsql_saver = new PgsqlSaver;
rule_loader_pgsql = new RuleLoaderPgsql;
#endif
tcp_conn_pool = new TcpConnPool;
packet_clean = new PacketClean;
observer = new Observer;
// packet_queue = new PacketQueue;
//river_gate = new RiverGate;
}
void Proc::InitPacket(){
//wait shem unlock
}
void Proc::InitMaster(){
//wait shem unlock
}