Examples of Socks5InitRequestDecoder


Examples of io.netty.handler.codec.socksx.v5.Socks5InitRequestDecoder

    @Override
    protected void configure(SocketChannel ch) throws Exception {
        ChannelPipeline p = ch.pipeline();
        switch (testMode) {
        case INTERMEDIARY:
            p.addLast("decoder", new Socks5InitRequestDecoder());
            p.addLast("encoder", Socks5MessageEncoder.INSTANCE);
            p.addLast(new Socks5IntermediaryHandler());
            break;
        case TERMINAL:
            p.addLast("decoder", new Socks5InitRequestDecoder());
            p.addLast("encoder", Socks5MessageEncoder.INSTANCE);
            p.addLast(new Socks5TerminalHandler());
            break;
        case UNRESPONSIVE:
            p.addLast(UnresponsiveHandler.INSTANCE);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.