public class QUICTransport implements Transport
Class QUICTransport. Provides quictransport functionality for the Hytale server.
java.lang.Object > QUICTransport
Field Summary
sslContext
final
QuicSslContext
sslContext
Field sslContext.
playTimeout
final
Duration
playTimeout
Field playTimeout.
quicHandler
final
ChannelHandler
quicHandler
Field quicHandler.
channel
final
QuicChannel
channel
Field channel.
clientCert
final
X509Certificate
clientCert
Field clientCert.
sslEngine
final
SSLEngine
sslEngine
Field sslEngine.
peerCerts
final
Certificate[]
peerCerts
Field peerCerts.
Method Detail
QUICTransport
public
public
QUICTransport
()
Method QUICTransport.
Bootstrap
public
new
Bootstrap
()
Method Bootstrap.
QuicChannelInboundHandlerAdapter
public
new
QuicChannelInboundHandlerAdapter
(sslContext)
Method QuicChannelInboundHandlerAdapter.
- Parameters:
sslContextsslContext
bind
public
ChannelFuture
bind
(@Nonnull final InetSocketAddress address)
Method bind.
- Parameters:
@Nonnull final InetSocketAddressaddress
UnsupportedOperationException
public
new
UnsupportedOperationException
("Unsupported address type: " + String.valueOf(address.getAddress()
Method UnsupportedOperationException.
- Parameters:
"Unsupported address type: " +String.valueOf(address.getAddress(
shutdown
public
void
shutdown
()
Method shutdown.
isSharable
public
boolean
isSharable
()
Method isSharable.
channelActive
public
void
channelActive
(@Nonnull final ChannelHandlerContext ctx)
Method channelActive.
- Parameters:
@Nonnull final ChannelHandlerContextctx
QuicServerCodecBuilder
public
new
QuicServerCodecBuilder
()
Method QuicServerCodecBuilder.
ChannelInboundHandlerAdapter
public
new
ChannelInboundHandlerAdapter
()
Method ChannelInboundHandlerAdapter.
channelInactive
public
void
channelInactive
(@Nonnull final ChannelHandlerContext ctx)
Method channelInactive.
- Parameters:
@Nonnull final ChannelHandlerContextctx
exceptionCaught
public
void
exceptionCaught
(@Nonnull final ChannelHandlerContext ctx, final Throwable cause)
Method exceptionCaught.
- Parameters:
@Nonnull final ChannelHandlerContextctxfinal Throwablecause
Disconnect
public
new
Disconnect
("Internal server error!", DisconnectType.Crash)
Method Disconnect.
- Parameters:
"Internal servererror!"DisconnectType.CrashDisconnectType.Crash
HytaleChannelInitializer
public
new
HytaleChannelInitializer
()
Method HytaleChannelInitializer.
extractClientCertificate
private
X509Certificate
extractClientCertificate
(final QuicChannel channel)
Method extractClientCertificate.
- Parameters:
final QuicChannelchannel