diff options
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 | ||