diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-11-09 16:25:22 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-11-09 16:25:22 +0000 |
commit | 74dd68ad611d15abf16a65c36a7cfd3f4492930a (patch) | |
tree | 843fed9ba6bb03253a01314afc3b1dfbb2dfd26c /c++-libbu++/src/protocolgats.h | |
parent | d9b407475ae3ebe434b29d9eabdd7d4416e17881 (diff) | |
download | libgats-74dd68ad611d15abf16a65c36a7cfd3f4492930a.tar.gz libgats-74dd68ad611d15abf16a65c36a7cfd3f4492930a.tar.bz2 libgats-74dd68ad611d15abf16a65c36a7cfd3f4492930a.tar.xz libgats-74dd68ad611d15abf16a65c36a7cfd3f4492930a.zip |
Made the repo less libbu++-centric.
Diffstat (limited to 'c++-libbu++/src/protocolgats.h')
-rw-r--r-- | c++-libbu++/src/protocolgats.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/c++-libbu++/src/protocolgats.h b/c++-libbu++/src/protocolgats.h new file mode 100644 index 0000000..7ed58d4 --- /dev/null +++ b/c++-libbu++/src/protocolgats.h | |||
@@ -0,0 +1,30 @@ | |||
1 | #ifndef GATS_PROTOCOL_GATS_H | ||
2 | #define GATS_PROTOCOL_GATS_H | ||
3 | |||
4 | #include <bu/protocol.h> | ||
5 | |||
6 | namespace Gats | ||
7 | { | ||
8 | class Object; | ||
9 | class GatsStream; | ||
10 | |||
11 | class ProtocolGats : public Bu::Protocol | ||
12 | { | ||
13 | public: | ||
14 | ProtocolGats(); | ||
15 | virtual ~ProtocolGats(); | ||
16 | |||
17 | virtual void onNewConnection( Bu::Client *pClient ); | ||
18 | virtual void onNewData( Bu::Client *pClient ); | ||
19 | |||
20 | virtual void onNewObject( Bu::Client *pClient, Gats::Object *pObj )=0; | ||
21 | |||
22 | void writeObject( Gats::Object *pObj ); | ||
23 | |||
24 | private: | ||
25 | Gats::GatsStream *pStream; | ||
26 | Bu::Client *pUsedClient; | ||
27 | }; | ||
28 | }; | ||
29 | |||
30 | #endif | ||