aboutsummaryrefslogtreecommitdiff
path: root/src/stable/serverinterface.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-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