aboutsummaryrefslogtreecommitdiff
path: root/src/client.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-06-18 19:42:34 +0000
committerMike Buland <eichlan@xagasoft.com>2007-06-18 19:42:34 +0000
commit8b12972092777af56ae21f65b41f4c40d52c2367 (patch)
tree3ee45c4b69899acb0cdbd013ea8e6ea54bcdc023 /src/client.h
parent5292e5831934dc719d1ac06332bd252abe4ac3bc (diff)
downloadlibbu++-8b12972092777af56ae21f65b41f4c40d52c2367.tar.gz
libbu++-8b12972092777af56ae21f65b41f4c40d52c2367.tar.bz2
libbu++-8b12972092777af56ae21f65b41f4c40d52c2367.tar.xz
libbu++-8b12972092777af56ae21f65b41f4c40d52c2367.zip
Added the protocol class. servers work, but don't send data, updated the streams
to include many more state indicators and caps queries, and everything is working better in general.
Diffstat (limited to 'src/client.h')
-rw-r--r--src/client.h20
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
7namespace Bu 8namespace 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