public class CloudNetClient
extends io.netty.channel.SimpleChannelInboundHandler
| Modifier and Type | Field and Description |
|---|---|
private io.netty.channel.Channel |
channel |
private INetworkComponent |
networkComponent |
| Constructor and Description |
|---|
CloudNetClient(INetworkComponent iNetworkComponent,
io.netty.channel.Channel channel) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext channelHandlerContext,
Object obj) |
void |
channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
io.netty.channel.Channel |
getChannel() |
INetworkComponent |
getNetworkComponent() |
void |
init(de.dytanic.cloudnet.lib.CloudNetwork cloudNetwork) |
acceptInboundMessage, channelReadchannelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableprivate io.netty.channel.Channel channel
private INetworkComponent networkComponent
public CloudNetClient(INetworkComponent iNetworkComponent, io.netty.channel.Channel channel)
public void init(de.dytanic.cloudnet.lib.CloudNetwork cloudNetwork)
public io.netty.channel.Channel getChannel()
public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelReadComplete in interface io.netty.channel.ChannelInboundHandlerchannelReadComplete in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
throws Exception
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterExceptionprotected void channelRead0(io.netty.channel.ChannelHandlerContext channelHandlerContext,
Object obj)
throws Exception
channelRead0 in class io.netty.channel.SimpleChannelInboundHandlerExceptionpublic INetworkComponent getNetworkComponent()
Copyright © 2020. All rights reserved.