X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fprotocol.h;h=9b1a45a488561d2aa76c0b5830dac015715b9aa7;hp=d1154db8d19529f8bd828969bc36b6584538f81d;hb=2e9855c688c827b2159fbb548bf816de360e3ae3;hpb=9d54503555534a2c554f09a33df6afa33d6308ec diff --git a/src/common/protocol.h b/src/common/protocol.h index d1154db8..9b1a45a4 100644 --- a/src/common/protocol.h +++ b/src/common/protocol.h @@ -27,17 +27,27 @@ namespace Protocol { +const quint32 magic = 0x42b33f00; + enum Type { - LegacyProtocol = 1 + LegacyProtocol = 0x01, + DataStreamProtocol = 0x02 +}; + + +enum Feature { + Encryption = 0x01, + Compression = 0x02 }; + enum Handler { SignalProxy, AuthHandler }; -/*** Handshake, handled by AuthHandler ***/ +/*** Handshake, handled by AuthHandler ***/ struct HandshakeMessage { inline Handler handler() const { return AuthHandler; }