Project

General

Profile

Statistics
| Revision:

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

History | View | Annotate | Download (664 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 <PositionMonitor.h>
11
#include <Log.h>
12

    
13
class ColonetServer {
14
public:
15
  ColonetServer();
16
  ~ColonetServer();
17

    
18
  int initialize_server(int argc, char * argv[]);
19
  int start_listening(void);
20
  int run_server(void);
21
  int process_received_wireless_message(int dest, char* data, int len);
22
  PositionMonitor getPositionMonitor(void);
23

    
24
private:
25
  ConnectionPool connection_pool;
26
  Log* logger;
27
  int listen_socket;
28
  PositionMonitor position_monitor;
29

    
30
  int initialize_wireless(void);
31
  int initialize_connection(int port);
32
};
33

    
34
#endif