diff options
Diffstat (limited to '')
-rw-r--r-- | src/stable/client.cpp | 18 |
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 | ||
26 | Bu::Client::Client( class Bu::ClientLinkFactory *pfLink ) : | 26 | Bu::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 | ||
33 | Bu::Client::~Client() | 34 | Bu::Client::~Client() |
34 | { | 35 | { |
35 | delete pfLink; | 36 | } |
37 | |||
38 | int Bu::Client::getId() const | ||
39 | { | ||
40 | return iId; | ||
36 | } | 41 | } |
37 | 42 | ||
38 | void Bu::Client::processInput() | 43 | void Bu::Client::processInput() |
@@ -47,6 +52,11 @@ void Bu::Client::processInput() | |||
47 | } | 52 | } |
48 | } | 53 | } |
49 | 54 | ||
55 | void Bu::Client::outputReady() | ||
56 | { | ||
57 | xServer.outputReady( iId ); | ||
58 | } | ||
59 | |||
50 | void Bu::Client::setProtocol( Protocol *pProto ) | 60 | void 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 | ||
162 | Bu::ClientLink *Bu::Client::getLink() | 172 | Bu::ClientLink *Bu::Client::getLink() |
163 | { | 173 | { |
164 | return pfLink->createLink( this ); | 174 | return NULL; //pfLink->createLink( this ); |
165 | } | 175 | } |
166 | 176 | ||
167 | void Bu::Client::onMessage( const Bu::String &sMsg ) | 177 | void Bu::Client::onMessage( const Bu::String &sMsg ) |