From a49af97abf091a32f6ec2c3985aa0890ded65d9c Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 31 Jul 2023 15:17:52 -0700 Subject: Debugging yet, but the new server works. It at least seems to! --- src/stable/client.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/stable/client.h') diff --git a/src/stable/client.h b/src/stable/client.h index abe807e..0ff7914 100644 --- a/src/stable/client.h +++ b/src/stable/client.h @@ -15,6 +15,7 @@ #include "bu/clientbuf.h" #include "bu/mutex.h" #include "bu/readwritemutex.h" +#include "bu/serverinterface.h" #ifndef PROFILE_BU_SERVER // #define PROFILE_BU_SERVER 1 @@ -37,10 +38,13 @@ namespace Bu { friend class Server; public: - Client( Bu::ClientLinkFactory *pfLink ); + Client( int iId, const Bu::ServerInterface &rServer ); virtual ~Client(); + int getId() const; + void processInput(); + void outputReady(); Bu::size write( const Bu::String &sData ); Bu::size write( const void *pData, Bu::size nBytes ); @@ -116,9 +120,10 @@ namespace Bu Bu::Protocol *pProto; Bu::ClientBuf cbBuffer; bool bWantsDisconnect; - class Bu::ClientLinkFactory *pfLink; mutable Bu::Mutex mProto; mutable Bu::Mutex mDisconnect; + int iId; + Bu::ServerInterface xServer; }; } -- cgit v1.2.3