Project

General

Profile

Revision 161

formatting stuff

View differences:

ConnectionPool.cpp
17 17
#include "includes/ConnectionPool.h"
18 18
#include "includes/Command.h"
19 19
#include "../lib/colonet_defs.h"
20

  
20 21
#include <colonet_wireless.h>
21 22

  
22 23
/**
......
291 292

  
292 293
    while ((newline_position = strstr(read_buffer[pool_index], "\n"))) {
293 294

  
294
      //if no newline if found in the entire readbuffer (when its full), 
295
      //if no newline if found in the entire readbuffer (when its full),
295 296
      //toss out the command
296 297
      // because either the command being given is too long or someone is trying
297 298
      // to do something bad to the server
......
350 351

  
351 352
  int sent = write(client_file_descriptor, write_buffer[pool_index], write_buffer_size[pool_index]);
352 353
  memmove(write_buffer[pool_index], write_buffer[pool_index]+sent, WRITE_BUFFER_SIZE - sent);
353
  write_buffer_size[pool_index] -= sent;  
354
  write_buffer_size[pool_index] -= sent;
354 355

  
355 356
  return 0;
356 357
}

Also available in: Unified diff