aboutsummaryrefslogtreecommitdiff
path: root/src/client.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-06-28 22:47:03 +0000
committerMike Buland <eichlan@xagasoft.com>2007-06-28 22:47:03 +0000
commitf896b0e207e0b656109ef0e9f721f27ce53a836e (patch)
tree1e93590ef779bd4d443a6dc302564c6673012afb /src/client.h
parentafb50f535dd60b485a38f1f1f692b3303e28fecc (diff)
downloadlibbu++-f896b0e207e0b656109ef0e9f721f27ce53a836e.tar.gz
libbu++-f896b0e207e0b656109ef0e9f721f27ce53a836e.tar.bz2
libbu++-f896b0e207e0b656109ef0e9f721f27ce53a836e.tar.xz
libbu++-f896b0e207e0b656109ef0e9f721f27ce53a836e.zip
Client code is better, so is the socket, you can get addresses and other cool
things from it. The plugger had yet another bugfix...plugger...
Diffstat (limited to 'src/client.h')
-rw-r--r--src/client.h10
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}