Added Ping / Pong system

This commit is contained in:
Shoghi Cervantes Pueyo
2013-04-01 16:03:43 +02:00
parent 1cb30601b5
commit 1ef0a41944
3 changed files with 17 additions and 15 deletions

View File

@ -27,7 +27,9 @@ the Free Software Foundation, either version 3 of the License, or
define("RAKNET_MAGIC", "\x00\xff\xff\x00\xfe\xfe\xfe\xfe\xfd\xfd\xfd\xfd\x12\x34\x56\x78");
define("MC_KEEP_ALIVE", 0x00);
define("MC_PING", 0x00);
define("MC_PONG", 0x03);
define("MC_CLIENT_CONNECT", 0x09);
define("MC_SERVER_HANDSHAKE", 0x10);