diff options
Diffstat (limited to 'src/client.h')
-rw-r--r-- | src/client.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/client.h b/src/client.h index 27fbad4..1a189e2 100644 --- a/src/client.h +++ b/src/client.h | |||
@@ -2,21 +2,35 @@ | |||
2 | #define CLIENT_H | 2 | #define CLIENT_H |
3 | 3 | ||
4 | #include <stdint.h> | 4 | #include <stdint.h> |
5 | #include "bu/socket.h" | 5 | |
6 | #include "bu/fstring.h" | ||
6 | 7 | ||
7 | namespace Bu | 8 | namespace Bu |
8 | { | 9 | { |
10 | class Protocol; | ||
11 | class Socket; | ||
12 | |||
9 | /** | 13 | /** |
10 | * | 14 | * |
11 | */ | 15 | */ |
12 | class Client | 16 | class Client |
13 | { | 17 | { |
14 | public: | 18 | public: |
15 | Client(); | 19 | Client( Bu::Socket *pSocket ); |
16 | virtual ~Client(); | 20 | virtual ~Client(); |
17 | 21 | ||
18 | private: | 22 | void processInput(); |
19 | 23 | ||
24 | Bu::FString &getInput(); | ||
25 | |||
26 | void setProtocol( Protocol *pProto ); | ||
27 | Bu::Protocol *getProtocol(); | ||
28 | void clearProtocol(); | ||
29 | |||
30 | private: | ||
31 | Bu::Socket *pSocket; | ||
32 | Bu::Protocol *pProto; | ||
33 | Bu::FString sReadBuf; | ||
20 | }; | 34 | }; |
21 | } | 35 | } |
22 | 36 | ||