root / trunk / code / projects / colonet / ColonetServer / includes / ColonetServer.h @ 132
History | View | Annotate | Download (522 Bytes)
1 |
/**
|
---|---|
2 |
* @author Jason Knichel
|
3 |
* @date 9/10/07
|
4 |
*/
|
5 |
|
6 |
#ifndef COLONETSERVER_H
|
7 |
#define COLONETSERVER_H
|
8 |
|
9 |
#include "ConnectionPool.h" |
10 |
#include "Log.h" |
11 |
|
12 |
class ColonetServer { |
13 |
public:
|
14 |
ColonetServer(); |
15 |
~ColonetServer(); |
16 |
int initialize_server(int argc, char * argv[]); |
17 |
|
18 |
int start_listening();
|
19 |
|
20 |
int run_server();
|
21 |
|
22 |
ConnectionPool * get_connection_pool_pointer(); |
23 |
|
24 |
private:
|
25 |
ConnectionPool connection_pool; |
26 |
Log logger; |
27 |
int listen_socket;
|
28 |
|
29 |
int initialize_wireless();
|
30 |
int initialize_connection(int port); |
31 |
}; |
32 |
|
33 |
#endif
|