public void Handle(Packet packet)
 {
     int packetType = packet.GetPacketType();
     switch (packetType)
     {
         case PacketTypes.NEW_CLIENT_PACKET:
             NewClientConnectedPacket newClientPacket = (NewClientConnectedPacket)packet;
             handle(newClientPacket);
             return;
     }
 }
 public void Handle(byte[] buffer)
 {
     Packet packet = new Packet(buffer);
     Handle(packet);
 }