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/serverinterface.h | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/stable/serverinterface.h (limited to 'src/stable/serverinterface.h') diff --git a/src/stable/serverinterface.h b/src/stable/serverinterface.h new file mode 100644 index 0000000..edc8335 --- /dev/null +++ b/src/stable/serverinterface.h @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2007-2019 Xagasoft, All rights reserved. + * + * This file is part of the libbu++ library and is released under the + * terms of the license contained in the file LICENSE. + */ + +#ifndef BU_SERVER_INTERFACE_H +#define BU_SERVER_INTERFACE_H + +#include + +namespace Bu +{ + class Server; + + class ServerInterface + { + friend class Bu::Server; + private: + ServerInterface( Bu::Server &rSrv ); + public: + ServerInterface( const Bu::ServerInterface &rSrc ); + ~ServerInterface(); + + /** + * Clients will call this when they have filled the output buffer and + * are ready for that data to be sent. This only needs to be called + * when async output is generated, that is when output is generated not + * in the processInput method. + */ + void outputReady( int iClientId ); + + private: + Bu::Server &rSrv; + }; +} + +#endif + -- cgit v1.2.3