aboutsummaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index d416700..19d2778 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -11,7 +11,8 @@
11Bu::Client::Client( Bu::Socket *pSocket ) : 11Bu::Client::Client( Bu::Socket *pSocket ) :
12 pSocket( pSocket ), 12 pSocket( pSocket ),
13 pProto( NULL ), 13 pProto( NULL ),
14 nRBOffset( 0 ) 14 nRBOffset( 0 ),
15 bWantsDisconnect( false )
15{ 16{
16} 17}
17 18
@@ -205,5 +206,15 @@ const Bu::Socket *Bu::Client::getSocket() const
205 206
206void Bu::Client::disconnect() 207void Bu::Client::disconnect()
207{ 208{
209 bWantsDisconnect = true;
208} 210}
209 211
212bool Bu::Client::wantsDisconnect()
213{
214 return bWantsDisconnect;
215}
216
217void Bu::Client::close()
218{
219 pSocket->close();
220}