ServerPacketProcessor
public class SeverPacketProcessor : NetworkPacketProcessor
{
public override void ProcessOtherPacket(PacketType packetType, NetPeer fromPeer, NetPacketReader dataReader)
{
switch (packetType)
{
//...
This class extends NetworkPacketProcessor and overrides the ProcessOtherPacket method so it can read incoming server specific packets. As your game may want to send more types of packets then there are present in the example, you are very much encouraged to change and add to this class
Methods
public override void ProcessOtherPacket(PacketType packetType, NetPeer fromPeer, NetPacketReader dataReader)
This method reads packets meant for servers. Given the PacketType, it can work out how best to interpret each type of packet. The current packet types it handles are: clientInput, clientPlayerData,