Enclosing class:
PacketDispatcher

static interface PacketDispatcher.PacketProcessor
Process one dispatched (connection, packet) pair. Implemented by PacketHandler.receiveKnownConnection(Connection, Packet); the implementation must consume the packet's payload exactly once.
  • Method Summary

    All Methods
    Modifier and Type
    Method
    Description
    void
    process(Connection con, Packet packet)
    Process the packet.
  • Method Details

    • process

      void process(Connection con, Packet packet)
      Process the packet.
      Parameters:
      con - the connection the packet belongs to, may be null in tests
      packet - the packet to process