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