Search in sources :

Example 1 with BigIntegerDecoder

use of io.netty.example.factorial.BigIntegerDecoder in project netty by netty.

the class PortUnificationServerHandler method switchToFactorial.

private void switchToFactorial(ChannelHandlerContext ctx) {
    ChannelPipeline p = ctx.pipeline();
    p.addLast("decoder", new BigIntegerDecoder());
    p.addLast("encoder", new NumberEncoder());
    p.addLast("handler", new FactorialServerHandler());
    p.remove(this);
}
Also used : BigIntegerDecoder(io.netty.example.factorial.BigIntegerDecoder) FactorialServerHandler(io.netty.example.factorial.FactorialServerHandler) NumberEncoder(io.netty.example.factorial.NumberEncoder) ChannelPipeline(io.netty.channel.ChannelPipeline)

Aggregations

ChannelPipeline (io.netty.channel.ChannelPipeline)1 BigIntegerDecoder (io.netty.example.factorial.BigIntegerDecoder)1 FactorialServerHandler (io.netty.example.factorial.FactorialServerHandler)1 NumberEncoder (io.netty.example.factorial.NumberEncoder)1