ConnectPacketInterceptor

class ConnectPacketInterceptor(session: PlayerSession, tokenService: TokenService, transferTokenValidator: TransferTokenValidator, router: Router, playerManager: PlayerManagerImpl, eventBus: EventBus, transferService: PlayerTransferService, onBackendSelected: (String) -> Unit) : ChannelInboundHandlerAdapter

Intercepts the Connect packet on stream 0 to inject proxy referral data.

Constructors

Link copied to clipboard
constructor(session: PlayerSession, tokenService: TokenService, transferTokenValidator: TransferTokenValidator, router: Router, playerManager: PlayerManagerImpl, eventBus: EventBus, transferService: PlayerTransferService, onBackendSelected: (String) -> Unit)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun channelActive(ctx: ChannelHandlerContext?)
Link copied to clipboard
open fun channelInactive(ctx: ChannelHandlerContext?)
Link copied to clipboard
open override fun channelRead(ctx: ChannelHandlerContext, msg: Any)
Link copied to clipboard
open fun channelReadComplete(ctx: ChannelHandlerContext?)
Link copied to clipboard
open fun channelRegistered(ctx: ChannelHandlerContext?)
Link copied to clipboard
open fun channelUnregistered(ctx: ChannelHandlerContext?)
Link copied to clipboard
open fun channelWritabilityChanged(ctx: ChannelHandlerContext?)
Link copied to clipboard
open fun exceptionCaught(ctx: ChannelHandlerContext?, cause: Throwable?)
Link copied to clipboard
open override fun handlerAdded(ctx: ChannelHandlerContext)
Link copied to clipboard
open override fun handlerRemoved(ctx: ChannelHandlerContext)
Link copied to clipboard
fun setBackendStream(stream: QuicStreamChannel)

Assigns the backend stream used for forwarding the modified Connect packet.

Link copied to clipboard
open fun userEventTriggered(ctx: ChannelHandlerContext?, evt: Any?)