From 74dd68ad611d15abf16a65c36a7cfd3f4492930a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 9 Nov 2012 16:25:22 +0000 Subject: Made the repo less libbu++-centric. --- c++-libbu++/src/protocolgats.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 c++-libbu++/src/protocolgats.h (limited to 'c++-libbu++/src/protocolgats.h') 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 @@ +#ifndef GATS_PROTOCOL_GATS_H +#define GATS_PROTOCOL_GATS_H + +#include + +namespace Gats +{ + class Object; + class GatsStream; + + class ProtocolGats : public Bu::Protocol + { + public: + ProtocolGats(); + virtual ~ProtocolGats(); + + virtual void onNewConnection( Bu::Client *pClient ); + virtual void onNewData( Bu::Client *pClient ); + + virtual void onNewObject( Bu::Client *pClient, Gats::Object *pObj )=0; + + void writeObject( Gats::Object *pObj ); + + private: + Gats::GatsStream *pStream; + Bu::Client *pUsedClient; + }; +}; + +#endif -- cgit v1.2.3