Class ProtocolUtil

java.lang.Object
com.hypixel.hytale.protocol.io.netty.ProtocolUtil

public final class ProtocolUtil extends Object
Protocol-level Netty utilities for connection management.
  • Field Details

    • STREAM_CHANNEL_KEY

      public static final io.netty.util.AttributeKey<NetworkChannel> STREAM_CHANNEL_KEY
    • PACKET_TIMEOUT_KEY

      public static final io.netty.util.AttributeKey<Duration> PACKET_TIMEOUT_KEY
      Channel attribute for packet timeout duration. Set by the server, read by PacketDecoder to enforce timeouts.
    • HANDLES_PACKET_KEY

      public static final io.netty.util.AttributeKey<IntPredicate> HANDLES_PACKET_KEY
      Channel attribute that tests if the current handler accepts a packet ID. Set by the server's pipeline handlers, read by PacketDecoder before it buffers the payload.