1 module draklib.core;
2 
3 class RakNetInfo {
4 	static immutable int RAKNET_PROTOCOL = 6;
5 	static immutable ubyte[] RAKNET_MAGIC = [
6 	0x00,  0xff,  0xff, 0x00,
7 	 0xfe,  0xfe,  0xfe,  0xfe,
8 	 0xfd,  0xfd,  0xfd,  0xfd,
9 	0x12, 0x34, 0x56, 0x78];
10 
11 	static immutable ubyte UNCONNECTED_PING_1 = 0x01;
12 	static immutable ubyte UNCONNECTED_PING_2 = 0x02;
13 	static immutable ubyte OFFLINE_CONNECTION_REQUEST_1 = 0x05;
14 	static immutable ubyte OFFLINE_CONNECTION_RESPONSE_1 = 0x06;
15 	static immutable ubyte OFFLINE_CONNECTION_REQUEST_2 = 0x07;
16 	static immutable ubyte OFFLINE_CONNECTION_RESPONSE_2 = 0x08;
17 	static immutable ubyte UNCONNECTED_PONG = 0x1C;
18 	static immutable ubyte ADVERTISE_SYSTEM = 0x1D;
19 
20 	/*
21 	static immutable ubyte FRAME_PACKET_0 =  0x80;
22 	static immutable ubyte FRAME_PACKET_1 =  0x81;
23 	static immutable ubyte FRAME_PACKET_2 =  0x82;
24 	static immutable ubyte FRAME_PACKET_3 =  0x83;
25 	static immutable ubyte FRAME_PACKET_4 =  0x84;
26 	static immutable ubyte FRAME_PACKET_5 =  0x85;
27 	static immutable ubyte FRAME_PACKET_6 =  0x86;
28 	static immutable ubyte FRAME_PACKET_7 =  0x87;
29 	static immutable ubyte FRAME_PACKET_8 =  0x88;
30 	static immutable ubyte FRAME_PACKET_9 =  0x89;
31 	static immutable ubyte FRAME_PACKET_A =  0x8A;
32 	static immutable ubyte FRAME_PACKET_B =  0x8B;
33 	static immutable ubyte FRAME_PACKET_C =  0x8C;
34 	static immutable ubyte FRAME_PACKET_D =  0x8D;
35 	static immutable ubyte FRAME_PACKET_E =  0x8E;
36 	static immutable ubyte FRAME_PACKET_F =  0x8F;
37 	*/
38 
39 	static immutable ubyte ACK =  0xC0;
40 	static immutable ubyte NACK =  0xA0;
41 
42 	static immutable ubyte CONNECTED_PING = 0x00;
43 	static immutable ubyte CONNECTED_PONG = 0x03;
44 
45 	static immutable ubyte ONLINE_CONNECTION_REQUEST = 0x09;
46 	static immutable ubyte ONLINE_CONNECTION_REQUEST_ACCEPTED = 0x10;
47 	//static immutable ubyte MC_CLIENT_HANDSHAKE = 0x13;
48 	static immutable ubyte DISCONNECT_NOTIFICATION = 0x15;
49 }