summaryrefslogtreecommitdiff
path: root/src/stable/protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stable/protocol.h')
-rw-r--r--src/stable/protocol.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/stable/protocol.h b/src/stable/protocol.h
new file mode 100644
index 0000000..0058723
--- /dev/null
+++ b/src/stable/protocol.h
@@ -0,0 +1,38 @@
1/*
2 * Copyright (C) 2007-2011 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
8#ifndef BU_PROTOCOL_H
9#define BU_PROTOCOL_H
10
11#include <stdint.h>
12
13#include "bu/string.h"
14
15namespace Bu
16{
17 class Client;
18
19 /**
20 *@ingroup Serving
21 */
22 class Protocol
23 {
24 public:
25 Protocol();
26 virtual ~Protocol();
27
28 virtual void onNewConnection( Bu::Client *pClient );
29 virtual void onNewData( Bu::Client *pClient );
30 virtual void onMessage( Bu::Client *pClient, const Bu::String &sMsg );
31 virtual void onTick( Bu::Client *pClient );
32
33 private:
34
35 };
36}
37
38#endif