root / trunk / code / projects / colonet / ColonetServer / includes / Command.h @ 128
History | View | Annotate | Download (434 Bytes)
1 |
/**
|
---|---|
2 |
* @file Command.h
|
3 |
*
|
4 |
* @author Jason Knichel
|
5 |
* @date 10/9/07
|
6 |
*/
|
7 |
|
8 |
#ifndef COMMAND_H
|
9 |
#define COMMAND_H
|
10 |
|
11 |
#include "ConnectionPool.h" |
12 |
|
13 |
class Command { |
14 |
public:
|
15 |
Command(); |
16 |
~Command(); |
17 |
|
18 |
int parse_command(char* command, int pool_index, ConnectionPool * connection_pool); |
19 |
int tokenize_command(char* command, char tokens[MAX_TOKENS][MAX_TOKEN_SIZE]); |
20 |
int check_tokens(unsigned char* tokens, int number_tokens); |
21 |
|
22 |
|
23 |
}; |
24 |
|
25 |
|
26 |
#endif
|