Project

General

Profile

Statistics
| Revision:

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

History | View | Annotate | Download (690 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 453 emarinel
 class ConnectionPool;
10
11 426 emarinel
#include <ConnectionPool.h>
12 443 emarinel
#include <PositionMonitor.h>
13 426 emarinel
#include <Log.h>
14 20 jknichel
15
class ColonetServer {
16
public:
17
  ColonetServer();
18
  ~ColonetServer();
19 424 emarinel
20 20 jknichel
  int initialize_server(int argc, char * argv[]);
21 424 emarinel
  int start_listening(void);
22
  int run_server(void);
23
  int process_received_wireless_message(int dest, char* data, int len);
24 444 emarinel
  PositionMonitor* getPositionMonitor(void);
25 25 jknichel
26 20 jknichel
private:
27 453 emarinel
  ConnectionPool* connection_pool;
28 426 emarinel
  Log* logger;
29 24 jknichel
  int listen_socket;
30 443 emarinel
  PositionMonitor position_monitor;
31 22 jknichel
32 424 emarinel
  int initialize_wireless(void);
33 26 jknichel
  int initialize_connection(int port);
34 20 jknichel
};
35
36
#endif