Project

General

Profile

Statistics
| Revision:

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

History | View | Annotate | Download (555 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 <Log.h>
11

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

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

    
22
private:
23
  ConnectionPool connection_pool;
24
  Log* logger;
25
  int listen_socket;
26

    
27
  int initialize_wireless(void);
28
  int initialize_connection(int port);
29
};
30

    
31
#endif