aboutsummaryrefslogtreecommitdiff
path: root/src/stable/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/stable/client.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/stable/client.cpp b/src/stable/client.cpp
index d2d48d7..159d103 100644
--- a/src/stable/client.cpp
+++ b/src/stable/client.cpp
@@ -23,16 +23,21 @@
23#define BU_PROFILE_END( x ) (void)0 23#define BU_PROFILE_END( x ) (void)0
24#endif 24#endif
25 25
26Bu::Client::Client( class Bu::ClientLinkFactory *pfLink ) : 26Bu::Client::Client( int iId, const Bu::ServerInterface &rServer ) :
27 pProto( NULL ), 27 pProto( NULL ),
28 bWantsDisconnect( false ), 28 bWantsDisconnect( false ),
29 pfLink( pfLink ) 29 iId( iId ),
30 xServer( rServer )
30{ 31{
31} 32}
32 33
33Bu::Client::~Client() 34Bu::Client::~Client()
34{ 35{
35 delete pfLink; 36}
37
38int Bu::Client::getId() const
39{
40 return iId;
36} 41}
37 42
38void Bu::Client::processInput() 43void Bu::Client::processInput()
@@ -47,6 +52,11 @@ void Bu::Client::processInput()
47 } 52 }
48} 53}
49 54
55void Bu::Client::outputReady()
56{
57 xServer.outputReady( iId );
58}
59
50void Bu::Client::setProtocol( Protocol *pProto ) 60void Bu::Client::setProtocol( Protocol *pProto )
51{ 61{
52 Bu::MutexLocker l( mProto ); 62 Bu::MutexLocker l( mProto );
@@ -161,7 +171,7 @@ void Bu::Client::close()
161 171
162Bu::ClientLink *Bu::Client::getLink() 172Bu::ClientLink *Bu::Client::getLink()
163{ 173{
164 return pfLink->createLink( this ); 174 return NULL; //pfLink->createLink( this );
165} 175}
166 176
167void Bu::Client::onMessage( const Bu::String &sMsg ) 177void Bu::Client::onMessage( const Bu::String &sMsg )