Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / colonet / ColonetServer / includes / ColonetServer.h @ 24

History | View | Annotate | Download (599 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 "Logging.h"
11

    
12
class ColonetServer {
13
public:
14
  ColonetServer();
15
  ~ColonetServer();
16
  int initialize_server(int argc, char * argv[]);
17
  
18
  int log_error(char * error_message);
19
  int log_message(char * message);
20

    
21
  int run_server();
22

    
23
  ConnectionPool * get_connection_pool_pointer();
24

    
25
  int get_listen_socket();
26

    
27
private:
28
  ConnectionPool connection_pool;
29
  Log logger;
30
  int listen_socket;
31

    
32
  int initialize_wireless();
33
  int initConnection(int port);
34

    
35
};
36

    
37
#endif