Class ProtocolUtil
java.lang.Object
com.hypixel.hytale.protocol.io.netty.ProtocolUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final io.netty.channel.ChannelFutureListener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcloseApplicationConnection(io.netty.channel.Channel channel) static voidcloseApplicationConnection(io.netty.channel.Channel channel, int errorCode) private static voidcloseApplicationOnComplete(io.netty.channel.ChannelFuture future) static voidcloseConnection(io.netty.channel.Channel channel) static voidcloseConnection(io.netty.channel.Channel channel, io.netty.handler.codec.quic.QuicTransportError error)
-
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)
-