Project

General

Profile

Revision 453

fixed compile errors in colonetserver

View differences:

ConnectionPool.h
9 9
#include <sys/select.h>
10 10

  
11 11
#include <colonet_wireless.h>
12
#include <ColonetServer.h>
12 13

  
13 14
#define MAX_TOKENS 15
14 15
#define MAX_TOKEN_SIZE 30
......
31 32
#define READ_BUFFER_SIZE 1024
32 33
#define WRITE_BUFFER_SIZE 4096
33 34

  
35
class ColonetServer;
36

  
34 37
class ConnectionPool {
35 38

  
36 39
public:
37
  ConnectionPool();
40
  ConnectionPool(ColonetServer* cs);
38 41
  ~ConnectionPool();
39 42

  
40 43
  int add_client(int client_file_descriptor);
......
59 62
  int read_buffer_size[MAX_CONNECTIONS];
60 63
  char * write_buffer[MAX_CONNECTIONS];
61 64
  int write_buffer_size[MAX_CONNECTIONS];
65
  ColonetServer* colonet_server;
62 66

  
63 67
  int read_data(int pool_index, int client_file_descriptor);
64 68
  int write_data(int pool_index, int client_file_descriptor);

Also available in: Unified diff