Receiving a Packet

This section specifies common steps that MUST be performed whenever the server receives a packet.

If the packet is received on the TCP connection, the server MUST verify that the packet begins with a TcpMessageHeader (section 2.2.3). Each message contained in the packet MUST be processed.

The server MUST inspect the MID field of the message to validate that the message is from one of the types specified in section 2.2.4 and process the message as specified in section 3.2.5.

If the packet is received over UDP, it MUST be a RequestPacketListResend (section 2.2.5) packet.

If the KeepAlive timer (as specified in section 3.2.2) is running, it MUST be stopped.