From e23028eb568f7f541c2717b5b4fb2c4cf1e2a690 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 21 Aug 2010 04:38:31 +0000 Subject: Packet was silly, the protocol will be good, though. --- src/packet.cpp | 10 ---------- src/packet.h | 29 ----------------------------- src/protocolgats.cpp | 14 ++++++++++++++ src/protocolgats.h | 22 ++++++++++++++++++++++ 4 files changed, 36 insertions(+), 39 deletions(-) delete mode 100644 src/packet.cpp delete mode 100644 src/packet.h create mode 100644 src/protocolgats.cpp create mode 100644 src/protocolgats.h diff --git a/src/packet.cpp b/src/packet.cpp deleted file mode 100644 index 6283ce5..0000000 --- a/src/packet.cpp +++ /dev/null @@ -1,10 +0,0 @@ -#include "gats/packet.h" - -Gats::Packet::Packet() -{ -} - -Gats::Packet::~Packet() -{ -} - diff --git a/src/packet.h b/src/packet.h deleted file mode 100644 index 5ddc9ee..0000000 --- a/src/packet.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef GATS_PACKET_H -#define GATS_PACKET_H - -namespace Gats -{ - class Object; - - /** - * A D-encoded packet is a header and metadata related to encoding as well - * as a single object. The advantage of this method is that the packet - * contains all information related to encoding and is highly portable, it - * also lets the reader know how much data to expect, which makes this - * efficient for use in protocols and embedding in other data streams. - */ - class Packet - { - public: - Packet(); - Packet( Object *pObject ); - virtual ~Packet(); - - Object *getObject() { return pRoot; } - - private: - Object *pRoot; - }; -}; - -#endif diff --git a/src/protocolgats.cpp b/src/protocolgats.cpp new file mode 100644 index 0000000..fbb25a5 --- /dev/null +++ b/src/protocolgats.cpp @@ -0,0 +1,14 @@ +#include "gats/protocolgats.h" + +Gats::ProtocolGats::ProtocolGats() +{ +} + +Gats::ProtocolGats::~ProtocolGats() +{ +} + +void Gats::ProtocolGats::onNewData( Bu::Client *pClient ) +{ +} + diff --git a/src/protocolgats.h b/src/protocolgats.h new file mode 100644 index 0000000..cab5217 --- /dev/null +++ b/src/protocolgats.h @@ -0,0 +1,22 @@ +#ifndef GATS_PROTOCOL_GATS_H +#define GATS_PROTOCOL_GATS_H + +#include + +namespace Gats +{ + class ProtocolGats : public Bu::Protocol + { + public: + ProtocolGats(); + virtual ~ProtocolGats(); + + virtual void onNewData( Bu::Client *pClient ); + + virtual void onNewObject( Gats::Object *pObj )=0; + + private: + }; +}; + +#endif -- cgit v1.2.3