Project

General

Profile

Revision 143

Added by Jason knichel over 16 years ago

improved the data encapsulation of connection pool

View differences:

ConnectionPool.h
40 40
  int add_client(int client_file_descriptor);
41 41
  int remove_client(int pool_index);
42 42
  int check_clients();
43

  
43 44
  int write_to_client(int pool_index, char * message, int length);
44
  void set_listen_socket_in_ready_set(int listen_socket);
45

  
46
  void add_new_socket_to_pool(int new_socket);
47

  
45 48
  int perform_select(int listen_socket);
49

  
46 50
  int is_socket_ready_to_read(int socket);
47 51

  
48
  int get_max_file_descriptor();
49
  void set_max_file_descriptor(int new_max_file_descriptor);
50

  
51 52
  int get_number_clients_ready();
52 53

  
53 54
private:

Also available in: Unified diff