public class TcpClientInitializer
extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
| Constructor and Description |
|---|
TcpClientInitializer(ClientTransporterListener _listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
initChannel(io.netty.channel.socket.SocketChannel ch) |
channelRegistered, exceptionCaught, handlerAdded, handlerRemovedpublic TcpClientInitializer(ClientTransporterListener _listener)
public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws java.lang.Exception
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws java.lang.Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exceptionprotected void initChannel(io.netty.channel.socket.SocketChannel ch)
throws java.lang.Exception
initChannel in class io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>java.lang.Exception