List of usage examples for io.netty.channel SimpleChannelInboundHandler subclass-usage
From source file c5db.client.FutureBasedMessageHandler.java
/** * A simple handler to handle inbound responses from the C5 server. */ public class FutureBasedMessageHandler extends SimpleChannelInboundHandler<Response> implements MessageHandler { private static final ClientScannerManager CLIENT_SCANNER_MANAGER = ClientScannerManager.INSTANCE; private final ConcurrentHashMap<Long, SettableFuture<Response>> futures = new ConcurrentHashMap<>();
From source file c5db.discovery.InboundHandler.java
public class InboundHandler extends SimpleChannelInboundHandler<ByteBuf> { @Override protected void channelRead0(ChannelHandlerContext ctx, ByteBuf msg) throws Exception { SocketAddress remoteAddress = ctx.channel().remoteAddress(); SocketAddress localAddress = ctx.channel().localAddress();
From source file c5db.regionserver.RegionServerHandler.java
/** * The main netty handler for the RegionServer functionality. Maps protocol buffer calls to an action against a HRegion * and then provides a response to the caller. */ public class RegionServerHandler extends SimpleChannelInboundHandler<Call> { private final RegionServerService regionServerService;
From source file ca.lambtoncollege.hauntedhouse.client.ClientHandler.java
/** * Handles a client-side channel. */ public class ClientHandler extends SimpleChannelInboundHandler<String> { private Canvas ca;
From source file ca.lambtoncollege.hauntedhouse.server.ServerHandler.java
/** * Handles a server-side channel. */ public class ServerHandler extends SimpleChannelInboundHandler<String> { static final ChannelGroup channels = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);
From source file ca.lambtoncollege.netty.chat.SecureChatClientHandler.java
/** * Handles a client-side channel. */ public class SecureChatClientHandler extends SimpleChannelInboundHandler<String> { public void messageReceived(ChannelHandlerContext ctx, String msg) { System.err.println(msg);
From source file ca.lambtoncollege.netty.chat.SecureChatServerHandler.java
/** * Handles a server-side channel. */ public class SecureChatServerHandler extends SimpleChannelInboundHandler<String> { static final ChannelGroup channels = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);
From source file ca.lambtoncollege.netty.webSocket.ClientHandlerWebSocket.java
/** * * @author c0647015 */ public class ClientHandlerWebSocket extends SimpleChannelInboundHandler<Object> {
From source file ca.lambtoncollege.netty.webSocket.ServerHandlerWebSocket.java
/** * * @author c0647015 */ public class ServerHandlerWebSocket extends SimpleChannelInboundHandler<Object> {
From source file cc.agentx.client.net.nio.Socks5Handler.java
@ChannelHandler.Sharable public final class Socks5Handler extends SimpleChannelInboundHandler<SocksRequest> { private static final InternalLogger log = InternalLoggerFactory.getInstance(Socks5Handler.class); @Override public void channelRead0(ChannelHandlerContext ctx, SocksRequest request) throws Exception {