Class ProtocolUtil

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

public final class ProtocolUtil extends Object
  • Field Details

    • APPLICATION_NO_ERROR

      public static final int APPLICATION_NO_ERROR
      See Also:
    • APPLICATION_RATE_LIMITED

      public static final int APPLICATION_RATE_LIMITED
      See Also:
    • APPLICATION_AUTH_FAILED

      public static final int APPLICATION_AUTH_FAILED
      See Also:
    • APPLICATION_INVALID_VERSION

      public static final int APPLICATION_INVALID_VERSION
      See Also:
    • CLOSE_ON_COMPLETE

      public static final io.netty.channel.ChannelFutureListener CLOSE_ON_COMPLETE
  • Constructor Details

    • ProtocolUtil

      private ProtocolUtil()
  • Method Details

    • closeConnection

      public static void closeConnection(@Nonnull io.netty.channel.Channel channel)
    • closeConnection

      public static void closeConnection(@Nonnull io.netty.channel.Channel channel, @Nonnull io.netty.handler.codec.quic.QuicTransportError error)
    • closeApplicationConnection

      public static void closeApplicationConnection(@Nonnull io.netty.channel.Channel channel)
    • closeApplicationConnection

      public static void closeApplicationConnection(@Nonnull io.netty.channel.Channel channel, int errorCode)
    • closeApplicationOnComplete

      private static void closeApplicationOnComplete(io.netty.channel.ChannelFuture future)