diff options
Diffstat (limited to '')
-rw-r--r-- | src/client.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/client.h b/src/client.h index f228e96..b400bb3 100644 --- a/src/client.h +++ b/src/client.h | |||
@@ -25,7 +25,12 @@ namespace Bu | |||
25 | Bu::FString &getInput(); | 25 | Bu::FString &getInput(); |
26 | Bu::FString &getOutput(); | 26 | Bu::FString &getOutput(); |
27 | void write( const char *pData, int nBytes ); | 27 | void write( const char *pData, int nBytes ); |
28 | void read( const char *pData, int nBytes ); | 28 | void write( int8_t nData ); |
29 | void write( int16_t nData ); | ||
30 | void write( int32_t nData ); | ||
31 | void write( int64_t nData ); | ||
32 | void read( char *pData, int nBytes ); | ||
33 | long getInputSize(); | ||
29 | 34 | ||
30 | void setProtocol( Protocol *pProto ); | 35 | void setProtocol( Protocol *pProto ); |
31 | Bu::Protocol *getProtocol(); | 36 | Bu::Protocol *getProtocol(); |
@@ -33,10 +38,13 @@ namespace Bu | |||
33 | 38 | ||
34 | bool isOpen(); | 39 | bool isOpen(); |
35 | 40 | ||
41 | const Bu::Socket *getSocket() const; | ||
42 | |||
36 | private: | 43 | private: |
37 | Bu::Socket *pSocket; | 44 | Bu::Socket *pSocket; |
38 | Bu::Protocol *pProto; | 45 | Bu::Protocol *pProto; |
39 | Bu::FString sReadBuf; | 46 | Bu::FString sReadBuf; |
47 | int nRBOffset; | ||
40 | Bu::FString sWriteBuf; | 48 | Bu::FString sWriteBuf; |
41 | }; | 49 | }; |
42 | } | 50 | } |