aboutsummaryrefslogtreecommitdiff
path: root/src/client.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-06-29 00:48:32 +0000
committerMike Buland <eichlan@xagasoft.com>2007-06-29 00:48:32 +0000
commitec8ed8b4b44c7b039e87faaa50bb4d503393d336 (patch)
tree7ea933f72bf2186f12658f96a30e451622fc485a /src/client.h
parent76ea96f91115585f7c6b49d11ba60ec15bee12e6 (diff)
downloadlibbu++-ec8ed8b4b44c7b039e87faaa50bb4d503393d336.tar.gz
libbu++-ec8ed8b4b44c7b039e87faaa50bb4d503393d336.tar.bz2
libbu++-ec8ed8b4b44c7b039e87faaa50bb4d503393d336.tar.xz
libbu++-ec8ed8b4b44c7b039e87faaa50bb4d503393d336.zip
A few changes here and there, mainly related to getting the new Server system
working in optimal condition...
Diffstat (limited to 'src/client.h')
-rw-r--r--src/client.h11
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;