Project

General

Profile

Statistics
| Revision:

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

History | View | Annotate | Download (656 Bytes)

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