Example usage for io.netty.channel SimpleChannelInboundHandler subclass-usage

List of usage examples for io.netty.channel SimpleChannelInboundHandler subclass-usage

Introduction

In this page you can find the example usage for io.netty.channel SimpleChannelInboundHandler subclass-usage.

Usage

From source file com.hop.hhxx.example.stomp.StompClientHandler.java

/**
 * STOMP client inbound handler implementation, which just passes received messages to listener
 */
public class StompClientHandler extends SimpleChannelInboundHandler<StompFrame> {

    private enum ClientState {

From source file com.hop.hhxx.example.telnet.TelnetClientHandler.java

/**
 * Handles a client-side channel.
 */
@Sharable
public class TelnetClientHandler extends SimpleChannelInboundHandler<String> {

From source file com.hop.hhxx.example.telnet.TelnetServerHandler.java

/**
 * Handles a server-side channel.
 */
@Sharable
public class TelnetServerHandler extends SimpleChannelInboundHandler<String> {

From source file com.hop.hhxx.example.udt.echo.bytes.ByteEchoClientHandler.java

/**
 * Handler implementation for the echo client. It initiates the ping-pong
 * traffic between the echo client and server by sending the first message to
 * the server on activation.
 */
public class ByteEchoClientHandler extends SimpleChannelInboundHandler<ByteBuf> {

From source file com.hop.hhxx.example.udt.echo.message.MsgEchoClientHandler.java

/**
 * Handler implementation for the echo client. It initiates the ping-pong
 * traffic between the echo client and server by sending the first message to
 * the server on activation.
 */
public class MsgEchoClientHandler extends SimpleChannelInboundHandler<UdtMessage> {

From source file com.hop.hhxx.example.udt.echo.rendezvous.MsgEchoPeerHandler.java

/**
 * Handler implementation for the echo peer. It initiates the ping-pong traffic
 * between the echo peers by sending the first message to the other peer on
 * activation.
 */
public class MsgEchoPeerHandler extends SimpleChannelInboundHandler<UdtMessage> {

From source file com.hop.hhxx.example.udt.echo.rendezvousBytes.ByteEchoPeerHandler.java

/**
 * Handler implementation for the echo client. It initiates the ping-pong
 * traffic between the echo client and server by sending the first message to
 * the server on activation.
 */
public class ByteEchoPeerHandler extends SimpleChannelInboundHandler<ByteBuf> {

From source file com.hop.hhxx.example.uptime.UptimeClientHandler.java

/**
 * Keep reconnecting to the server while printing out the current uptime and
 * connection attempt getStatus.
 */
@Sharable
public class UptimeClientHandler extends SimpleChannelInboundHandler<Object> {

From source file com.hop.hhxx.example.worldclock.WorldClockClientHandler.java

public class WorldClockClientHandler extends SimpleChannelInboundHandler<LocalTimes> {

    private static final Pattern DELIM = Pattern.compile("/");

    // Stateful properties
    private volatile Channel channel;

From source file com.hop.hhxx.example.worldclock.WorldClockServerHandler.java

public class WorldClockServerHandler extends SimpleChannelInboundHandler<Locations> {

    @Override
    public void channelRead0(ChannelHandlerContext ctx, Locations locations) throws Exception {
        long currentTime = System.currentTimeMillis();