Project

General

Profile

Revision 55

Added by Jason knichel over 16 years ago

added comments and fixed style a little bit

View differences:

ConnectionPool.cpp
447 447
  return 0;
448 448
}
449 449

  
450
/**
451
 * @brief Breaks a command up into tokens
452
 *
453
 * @param command The command to tokenize
454
 * @param tokens A two dimensional character array to store the tokens in
455
 *
456
 * @return 0 on success, negative error code on failure
457
 */
450 458
int ConnectionPool::tokenize_command(char* command, char tokens[MAX_TOKENS][MAX_TOKEN_SIZE]) {
451 459
  char* nextToken = command;
452 460
  char* endToken = NULL;
......
486 494
  return numTokens;
487 495
}
488 496

  
489
/** @brief checks a list of tokens to see if it's valid
497
/** 
498
 * @brief checks a list of tokens to see if it's valid
490 499
 *
500
 * @param tokens The tokens to check
501
 * @param numTokens The number of tokens contained in the tokens parameter
502
 *
491 503
 * @return 0 if tokens is valid
492 504
 */
493 505
int ConnectionPool::check_tokens(unsigned char* tokens, int numTokens) {

Also available in: Unified diff