@@ -61,7 +61,7 @@ class NetPacket : public MemoryPoolObject
6161
6262 NetCommandList *getCommandList ();
6363
64- static NetCommandRef * ConstructNetCommandMsgFromRawData (UnsignedByte *data, UnsignedShort dataLength);
64+ static NetCommandRef *ConstructNetCommandMsgFromRawData (const UnsignedByte *data, UnsignedInt dataLength);
6565 static NetPacketList ConstructBigCommandPacketList (NetCommandRef *ref);
6666
6767 UnsignedByte *getData ();
@@ -80,38 +80,7 @@ class NetPacket : public MemoryPoolObject
8080 Bool isAckStage2Repeat (NetCommandRef *msg);
8181 Bool isFrameRepeat (NetCommandRef *msg);
8282
83- static NetCommandMsg * readGameMessage (UnsignedByte *data, Int &i);
84- static NetCommandMsg * readAckBothMessage (UnsignedByte *data, Int &i);
85- static NetCommandMsg * readAckStage1Message (UnsignedByte *data, Int &i);
86- static NetCommandMsg * readAckStage2Message (UnsignedByte *data, Int &i);
87- static NetCommandMsg * readFrameMessage (UnsignedByte *data, Int &i);
88- static NetCommandMsg * readPlayerLeaveMessage (UnsignedByte *data, Int &i);
89- static NetCommandMsg * readRunAheadMetricsMessage (UnsignedByte *data, Int &i);
90- static NetCommandMsg * readRunAheadMessage (UnsignedByte *data, Int &i);
91- static NetCommandMsg * readDestroyPlayerMessage (UnsignedByte *data, Int &i);
92- static NetCommandMsg * readKeepAliveMessage (UnsignedByte *data, Int &i);
93- static NetCommandMsg * readDisconnectKeepAliveMessage (UnsignedByte *data, Int &i);
94- static NetCommandMsg * readDisconnectPlayerMessage (UnsignedByte *data, Int &i);
95- static NetCommandMsg * readPacketRouterQueryMessage (UnsignedByte *data, Int &i);
96- static NetCommandMsg * readPacketRouterAckMessage (UnsignedByte *data, Int &i);
97- static NetCommandMsg * readDisconnectChatMessage (UnsignedByte *data, Int &i);
98- static NetCommandMsg * readDisconnectVoteMessage (UnsignedByte *data, Int &i);
99- static NetCommandMsg * readChatMessage (UnsignedByte *data, Int &i);
100- static NetCommandMsg * readProgressMessage (UnsignedByte *data, Int &i);
101- static NetCommandMsg * readLoadCompleteMessage (UnsignedByte *data, Int &i);
102- static NetCommandMsg * readTimeOutGameStartMessage (UnsignedByte *data, Int &i);
103- static NetCommandMsg * readWrapperMessage (UnsignedByte *data, Int &i);
104- static NetCommandMsg * readFileMessage (UnsignedByte *data, Int &i);
105- static NetCommandMsg * readFileAnnounceMessage (UnsignedByte *data, Int &i);
106- static NetCommandMsg * readFileProgressMessage (UnsignedByte *data, Int &i);
107- static NetCommandMsg * readDisconnectFrameMessage (UnsignedByte *data, Int &i);
108- static NetCommandMsg * readDisconnectScreenOffMessage (UnsignedByte *data, Int &i);
109- static NetCommandMsg * readFrameResendRequestMessage (UnsignedByte *data, Int &i);
110-
111- void writeGameMessageArgumentToPacket (GameMessageArgumentDataType type, GameMessageArgumentType arg);
112- static void readGameMessageArgumentFromPacket (GameMessageArgumentDataType type, NetGameCommandMsg *msg, UnsignedByte *data, Int &i);
113-
114- void dumpPacketToLog ();
83+ static void dumpPacketToLog (const UnsignedByte *packet, Int packetLen);
11584
11685protected:
11786 UnsignedByte m_packet[MAX_PACKET_SIZE ];
0 commit comments