Contents
Class PendingStreamConnectionHandler
java.lang.Object
com.hypixel.hytale.server.core.io.stream.PendingStreamConnectionHandler
- All Implemented Interfaces:
ConnectionHandler
Quiche-backend equivalent of
PendingStreamHandler.
Handles the StreamOpen handshake for client-initiated auxiliary streams,
then replaces itself with the appropriate type-specific handler.-
Constructor Summary
ConstructorsConstructorDescriptionPendingStreamConnectionHandler(PacketHandler packetHandler, ChannelConnection channel) PendingStreamConnectionHandler(PacketHandler packetHandler, StreamManager streamManager, ChannelConnection channel) -
Method Summary
Modifier and TypeMethodDescriptionvoidclosed(NetworkChannel networkChannel) Called when the affiliated network channel has been closed.voidhandle(ToServerPacket packet) Called to handle the given incoming packet.voidCalled to log that this handler's connection has been closed.voidregistered(ConnectionHandler oldHandler) Called when this handler is registered on a connection, potentially replacing an old handler.voidunregistered(ConnectionHandler newHandler) Called when this handler is unregistered from a connection, potentially being replaced by a new handler.
-
Constructor Details
-
PendingStreamConnectionHandler
public PendingStreamConnectionHandler(@Nonnull PacketHandler packetHandler, @Nonnull ChannelConnection channel) -
PendingStreamConnectionHandler
public PendingStreamConnectionHandler(@Nonnull PacketHandler packetHandler, @Nonnull StreamManager streamManager, @Nonnull ChannelConnection channel)
-
-
Method Details
-
handle
Description copied from interface:ConnectionHandlerCalled to handle the given incoming packet.- Specified by:
handlein interfaceConnectionHandler- Parameters:
packet- The packet to be handled
-
closed
Description copied from interface:ConnectionHandlerCalled when the affiliated network channel has been closed.- Specified by:
closedin interfaceConnectionHandler- Parameters:
networkChannel- The network channel that was closed, or null if unknown
-
registered
Description copied from interface:ConnectionHandlerCalled when this handler is registered on a connection, potentially replacing an old handler.- Specified by:
registeredin interfaceConnectionHandler- Parameters:
oldHandler- The previous handler, or null if this is the first handler
-
unregistered
Description copied from interface:ConnectionHandlerCalled when this handler is unregistered from a connection, potentially being replaced by a new handler.- Specified by:
unregisteredin interfaceConnectionHandler- Parameters:
newHandler- The new handler replacing this one, or null
-
logCloseMessage
public void logCloseMessage()Description copied from interface:ConnectionHandlerCalled to log that this handler's connection has been closed.- Specified by:
logCloseMessagein interfaceConnectionHandler
-