summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol.h
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-09-27 16:18:31 +0200
committertycho <work.tycho@gmail.com>2015-12-18 19:14:34 +0100
commit50186579737c12f11bea815d5fb8db732c6ff3c6 (patch)
tree7ca89ced1321b2bcff243d16818f93db02ca3b25 /src/Protocol/Protocol.h
parentbroken 2 (diff)
downloadcuberite-50186579737c12f11bea815d5fb8db732c6ff3c6.tar
cuberite-50186579737c12f11bea815d5fb8db732c6ff3c6.tar.gz
cuberite-50186579737c12f11bea815d5fb8db732c6ff3c6.tar.bz2
cuberite-50186579737c12f11bea815d5fb8db732c6ff3c6.tar.lz
cuberite-50186579737c12f11bea815d5fb8db732c6ff3c6.tar.xz
cuberite-50186579737c12f11bea815d5fb8db732c6ff3c6.tar.zst
cuberite-50186579737c12f11bea815d5fb8db732c6ff3c6.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Protocol/Protocol.h b/src/Protocol/Protocol.h
index 675302c1d..b3335b6b8 100644
--- a/src/Protocol/Protocol.h
+++ b/src/Protocol/Protocol.h
@@ -71,7 +71,9 @@ public:
PacketReadError,
// One of the values read out of the packet was invalid.
// We send a kick packet in response to a process error
- PacketProcessError
+ PacketProcessError,
+ NotCompleted,
+ UnsupportedProtocol
};
cProtocol(AString a_LogID) :
@@ -179,6 +181,8 @@ public:
/** Returns the ServerID used for authentication through session.minecraft.net */
virtual AString GetAuthServerID(void) = 0;
+ virtual cProtocolError HandleHandshake(cByteBuffer & a_ByteBuffer, std::vector<std::unique_ptr<cClientAction>> & a_Actions) WARN_UNUSED = 0;
+
protected:
friend class cPacketizer;