aboutsummaryrefslogtreecommitdiff
path: root/src/stable/serverinterface.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2023-07-31 15:17:52 -0700
committerMike Buland <eichlan@xagasoft.com>2023-07-31 15:17:52 -0700
commita49af97abf091a32f6ec2c3985aa0890ded65d9c (patch)
tree9332acb37ccaa1552bf273d2383d4a0292deea14 /src/stable/serverinterface.h
parent9a7dde29dc1bc1f699508ad9c0335f4d7abf319f (diff)
downloadlibbu++-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 'src/stable/serverinterface.h')
-rw-r--r--src/stable/serverinterface.h40
1 files changed, 40 insertions, 0 deletions
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 @@
1/*
2 * Copyright (C) 2007-2019 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
8#ifndef BU_SERVER_INTERFACE_H
9#define BU_SERVER_INTERFACE_H
10
11#include <stdint.h>
12
13namespace Bu
14{
15 class Server;
16
17 class ServerInterface
18 {
19 friend class Bu::Server;
20 private:
21 ServerInterface( Bu::Server &rSrv );
22 public:
23 ServerInterface( const Bu::ServerInterface &rSrc );
24 ~ServerInterface();
25
26 /**
27 * Clients will call this when they have filled the output buffer and
28 * are ready for that data to be sent. This only needs to be called
29 * when async output is generated, that is when output is generated not
30 * in the processInput method.
31 */
32 void outputReady( int iClientId );
33
34 private:
35 Bu::Server &rSrv;
36 };
37}
38
39#endif
40