diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-06-18 22:44:45 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-06-18 22:44:45 +0000 |
commit | 33012c4ef4d39efad4fbc2b19f494f5c860fff51 (patch) | |
tree | 8bef67016807893f32b5a4d6aa822c65534500a5 /src/client.h | |
parent | 6f94639a3f5e20e1c635b2d8676086464d7cba2e (diff) | |
download | libbu++-33012c4ef4d39efad4fbc2b19f494f5c860fff51.tar.gz libbu++-33012c4ef4d39efad4fbc2b19f494f5c860fff51.tar.bz2 libbu++-33012c4ef4d39efad4fbc2b19f494f5c860fff51.tar.xz libbu++-33012c4ef4d39efad4fbc2b19f494f5c860fff51.zip |
The client/server system now works both ways, in and out, and works as well as
the old one in pretty much every way, and better in most. It's much easier to
understand. And the atom class is better.
Diffstat (limited to '')
-rw-r--r-- | src/client.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client.h b/src/client.h index 1a189e2..02ba077 100644 --- a/src/client.h +++ b/src/client.h | |||
@@ -20,17 +20,23 @@ namespace Bu | |||
20 | virtual ~Client(); | 20 | virtual ~Client(); |
21 | 21 | ||
22 | void processInput(); | 22 | void processInput(); |
23 | void processOutput(); | ||
23 | 24 | ||
24 | Bu::FString &getInput(); | 25 | Bu::FString &getInput(); |
26 | Bu::FString &getOutput(); | ||
27 | void write( const char *pData, int nBytes ); | ||
25 | 28 | ||
26 | void setProtocol( Protocol *pProto ); | 29 | void setProtocol( Protocol *pProto ); |
27 | Bu::Protocol *getProtocol(); | 30 | Bu::Protocol *getProtocol(); |
28 | void clearProtocol(); | 31 | void clearProtocol(); |
29 | 32 | ||
33 | bool isOpen(); | ||
34 | |||
30 | private: | 35 | private: |
31 | Bu::Socket *pSocket; | 36 | Bu::Socket *pSocket; |
32 | Bu::Protocol *pProto; | 37 | Bu::Protocol *pProto; |
33 | Bu::FString sReadBuf; | 38 | Bu::FString sReadBuf; |
39 | Bu::FString sWriteBuf; | ||
34 | }; | 40 | }; |
35 | } | 41 | } |
36 | 42 | ||