ddog/src/main/java/com/foogaro/datadog/ddog/command/ping/client/ClientChannelInitializer.java
package com.foogaro.datadog.ddog.command.ping.client;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.socket.DatagramChannel;

public class ClientChannelInitializer extends ChannelInitializer<DatagramChannel> {
    @Override
    protected void initChannel(DatagramChannel ch) throws Exception {
        ChannelPipeline pipeline = ch.pipeline();
        pipeline.addLast("echo", new EchoHandler());
    }
}
