diff options
Diffstat (limited to 'src/client.h')
| -rw-r--r-- | src/client.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/client.h b/src/client.h index 1253dcd..5947521 100644 --- a/src/client.h +++ b/src/client.h | |||
| @@ -24,7 +24,7 @@ namespace Bu | |||
| 24 | 24 | ||
| 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 void *pData, int nBytes ); |
| 28 | void write( int8_t nData ); | 28 | void write( int8_t nData ); |
| 29 | void write( int16_t nData ); | 29 | void write( int16_t nData ); |
| 30 | void write( int32_t nData ); | 30 | void write( int32_t nData ); |
| @@ -33,7 +33,9 @@ namespace Bu | |||
| 33 | void write( uint16_t nData ); | 33 | void write( uint16_t nData ); |
| 34 | void write( uint32_t nData ); | 34 | void write( uint32_t nData ); |
| 35 | void write( uint64_t nData ); | 35 | void write( uint64_t nData ); |
| 36 | void read( char *pData, int nBytes ); | 36 | void read( void *pData, int nBytes ); |
| 37 | void peek( void *pData, int nBytes ); | ||
| 38 | void seek( int nBytes ); | ||
| 37 | long getInputSize(); | 39 | long getInputSize(); |
| 38 | 40 | ||
| 39 | void setProtocol( Protocol *pProto ); | 41 | void setProtocol( Protocol *pProto ); |
| @@ -44,6 +46,11 @@ namespace Bu | |||
| 44 | 46 | ||
| 45 | const Bu::Socket *getSocket() const; | 47 | const Bu::Socket *getSocket() const; |
| 46 | 48 | ||
| 49 | /** | ||
| 50 | *@todo Make this not suck. | ||
| 51 | */ | ||
| 52 | void disconnect(); | ||
| 53 | |||
| 47 | private: | 54 | private: |
| 48 | Bu::Socket *pSocket; | 55 | Bu::Socket *pSocket; |
| 49 | Bu::Protocol *pProto; | 56 | Bu::Protocol *pProto; |
