diff options
author | Mike Buland <eichlan@xagasoft.com> | 2023-07-31 15:17:52 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2023-07-31 15:17:52 -0700 |
commit | a49af97abf091a32f6ec2c3985aa0890ded65d9c (patch) | |
tree | 9332acb37ccaa1552bf273d2383d4a0292deea14 /src/stable/client.cpp | |
parent | 9a7dde29dc1bc1f699508ad9c0335f4d7abf319f (diff) | |
download | libbu++-a49af97abf091a32f6ec2c3985aa0890ded65d9c.tar.gz libbu++-a49af97abf091a32f6ec2c3985aa0890ded65d9c.tar.bz2 libbu++-a49af97abf091a32f6ec2c3985aa0890ded65d9c.tar.xz libbu++-a49af97abf091a32f6ec2c3985aa0890ded65d9c.zip |
Debugging yet, but the new server works.
It at least seems to!
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 ) |