List of usage examples for io.netty.channel ChannelInboundHandlerAdapter subclass-usage
From source file com.flysoloing.learning.network.netty.localecho.LocalEchoServerHandler.java
public class LocalEchoServerHandler extends ChannelInboundHandlerAdapter { @Override public void channelRead(ChannelHandlerContext ctx, Object msg) { // Write back as received ctx.write(msg);
From source file com.flysoloing.learning.network.netty.objectecho.ObjectEchoClientHandler.java
/** * Handler implementation for the object echo client. It initiates the * ping-pong traffic between the object echo client and server by sending the * first message to the server. */ public class ObjectEchoClientHandler extends ChannelInboundHandlerAdapter {
From source file com.flysoloing.learning.network.netty.objectecho.ObjectEchoServerHandler.java
/** * Handles both client-side and server-side handler depending on which * constructor was called. */ public class ObjectEchoServerHandler extends ChannelInboundHandlerAdapter {
From source file com.flysoloing.learning.network.netty.proxy.HexDumpProxyBackendHandler.java
public class HexDumpProxyBackendHandler extends ChannelInboundHandlerAdapter { private final Channel inboundChannel; public HexDumpProxyBackendHandler(Channel inboundChannel) { this.inboundChannel = inboundChannel;
From source file com.flysoloing.learning.network.netty.proxy.HexDumpProxyFrontendHandler.java
public class HexDumpProxyFrontendHandler extends ChannelInboundHandlerAdapter { private final String remoteHost; private final int remotePort; // As we use inboundChannel.eventLoop() when buildling the Bootstrap this does not need to be volatile as
From source file com.flysoloing.learning.network.netty.sctp.SctpEchoClientHandler.java
/** * Handler implementation for the SCTP echo client. It initiates the ping-pong * traffic between the echo client and server by sending the first message to * the server. */ public class SctpEchoClientHandler extends ChannelInboundHandlerAdapter {
From source file com.flysoloing.learning.network.netty.sctp.SctpEchoServerHandler.java
/** * Handler implementation for the SCTP echo server. */ @Sharable public class SctpEchoServerHandler extends ChannelInboundHandlerAdapter {
From source file com.flysoloing.learning.network.netty.socksproxy.DirectClientHandler.java
public final class DirectClientHandler extends ChannelInboundHandlerAdapter { private final Promise<Channel> promise; public DirectClientHandler(Promise<Channel> promise) { this.promise = promise;
From source file com.flysoloing.learning.network.netty.socksproxy.RelayHandler.java
public final class RelayHandler extends ChannelInboundHandlerAdapter { private final Channel relayChannel; public RelayHandler(Channel relayChannel) { this.relayChannel = relayChannel;
From source file com.flysoloing.learning.network.netty.udt.echo.bytes.ByteEchoServerHandler.java
/** * Handler implementation for the echo server. */ @Sharable public class ByteEchoServerHandler extends ChannelInboundHandlerAdapter {