diff options
Diffstat (limited to '')
-rw-r--r-- | c++-libbu++/src/protocolgats.h | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/c++-libbu++/src/protocolgats.h b/c++-libbu++/src/protocolgats.h index 7ed58d4..86dda00 100644 --- a/c++-libbu++/src/protocolgats.h +++ b/c++-libbu++/src/protocolgats.h | |||
@@ -1,3 +1,10 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007-2012 Xagasoft, All rights reserved. | ||
3 | * | ||
4 | * This file is part of the libgats library and is released under the | ||
5 | * terms of the license contained in the file LICENSE. | ||
6 | */ | ||
7 | |||
1 | #ifndef GATS_PROTOCOL_GATS_H | 8 | #ifndef GATS_PROTOCOL_GATS_H |
2 | #define GATS_PROTOCOL_GATS_H | 9 | #define GATS_PROTOCOL_GATS_H |
3 | 10 | ||
@@ -5,26 +12,26 @@ | |||
5 | 12 | ||
6 | namespace Gats | 13 | namespace Gats |
7 | { | 14 | { |
8 | class Object; | 15 | class Object; |
9 | class GatsStream; | 16 | class GatsStream; |
10 | 17 | ||
11 | class ProtocolGats : public Bu::Protocol | 18 | class ProtocolGats : public Bu::Protocol |
12 | { | 19 | { |
13 | public: | 20 | public: |
14 | ProtocolGats(); | 21 | ProtocolGats(); |
15 | virtual ~ProtocolGats(); | 22 | virtual ~ProtocolGats(); |
16 | 23 | ||
17 | virtual void onNewConnection( Bu::Client *pClient ); | 24 | virtual void onNewConnection( Bu::Client *pClient ); |
18 | virtual void onNewData( Bu::Client *pClient ); | 25 | virtual void onNewData( Bu::Client *pClient ); |
19 | 26 | ||
20 | virtual void onNewObject( Bu::Client *pClient, Gats::Object *pObj )=0; | 27 | virtual void onNewObject( Bu::Client *pClient, Gats::Object *pObj )=0; |
21 | 28 | ||
22 | void writeObject( Gats::Object *pObj ); | 29 | void writeObject( Gats::Object *pObj ); |
23 | 30 | ||
24 | private: | 31 | private: |
25 | Gats::GatsStream *pStream; | 32 | Gats::GatsStream *pStream; |
26 | Bu::Client *pUsedClient; | 33 | Bu::Client *pUsedClient; |
27 | }; | 34 | }; |
28 | }; | 35 | }; |
29 | 36 | ||
30 | #endif | 37 | #endif |