Project

General

Profile

Statistics
| Revision:

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

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