projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Output the chosen protocol type on connect
[quassel.git]
/
src
/
common
/
protocol.h
diff --git
a/src/common/protocol.h
b/src/common/protocol.h
index
d1154db
..
9b1a45a
100644
(file)
--- a/
src/common/protocol.h
+++ b/
src/common/protocol.h
@@
-27,17
+27,27
@@
namespace Protocol {
namespace Protocol {
+const quint32 magic = 0x42b33f00;
+
enum Type {
enum Type {
- LegacyProtocol = 1
+ LegacyProtocol = 0x01,
+ DataStreamProtocol = 0x02
+};
+
+
+enum Feature {
+ Encryption = 0x01,
+ Compression = 0x02
};
};
+
enum Handler {
SignalProxy,
AuthHandler
};
enum Handler {
SignalProxy,
AuthHandler
};
-/*** Handshake, handled by AuthHandler ***/
+/*** Handshake, handled by AuthHandler ***/
struct HandshakeMessage {
inline Handler handler() const { return AuthHandler; }
struct HandshakeMessage {
inline Handler handler() const { return AuthHandler; }