List of usage examples for io.netty.channel ChannelHandlerAdapter subclass-usage
From source file com.netty.frame.delimiter.EchoClientHandler.java
public class EchoClientHandler extends ChannelHandlerAdapter { private int counter; static final String ECHO_REQ = "Hi, Administrator. Welcome to Netty.$_";
From source file com.netty.frame.delimiter.EchoServerHandler.java
@Sharable public class EchoServerHandler extends ChannelHandlerAdapter { int counter = 0; @Override
From source file com.netty.frame.fault.TimeClientHandler.java
public class TimeClientHandler extends ChannelHandlerAdapter { private static final Logger logger = Logger.getLogger(TimeClientHandler.class.getName()); private int counter;
From source file com.netty.frame.fault.TimeServerHandler.java
public class TimeServerHandler extends ChannelHandlerAdapter { private int counter; @Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
From source file com.netty.frame.fixedLen.EchoServerHandler.java
@Sharable public class EchoServerHandler extends ChannelHandlerAdapter { @Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception { System.out.println("Receive client : [" + msg + "]");
From source file com.netty.game.client.handler.ClientExtHandler.java
public class ClientExtHandler extends ChannelHandlerAdapter { @Override public void channelActive(ChannelHandlerContext ctx) { ctx.writeAndFlush(buildExtReq(ServerConfigData.CMD_EXT, "1_1_1", "dev")); }
From source file com.netty.game.server.handler.ExtHandler.java
public class ExtHandler extends ChannelHandlerAdapter { @Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception { ctx.channel().pipeline().writeAndFlush(msg); ServerCustomMsg.CustomMsg req = (ServerCustomMsg.CustomMsg) msg;
From source file com.netty.game.server.handler.LoginHandler.java
public class LoginHandler extends ChannelHandlerAdapter { @Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception { ServerCustomMsg.CustomMsg req = (ServerCustomMsg.CustomMsg) msg; System.out.println("received msg: \n" + req);
From source file com.netty.protocol.netty.client.HeartBeatReqHandler.java
public class HeartBeatReqHandler extends ChannelHandlerAdapter { private volatile ScheduledFuture<?> heartBeat; @Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
From source file com.netty.protocol.netty.client.LoginAuthReqHandler.java
public class LoginAuthReqHandler extends ChannelHandlerAdapter { /** * Calls {@link ChannelHandlerContext#fireChannelActive()} to forward to the * next {@link ChannelHandler} in the {@link ChannelPipeline}. *