Package io.netty.handler.codec.socks

Examples of io.netty.handler.codec.socks.SocksMessageEncoder


    }

    private void enableSocks(ChannelHandlerContext ctx) {
        ChannelPipeline pipeline = ctx.pipeline();
        pipeline.addLast(SocksInitRequestDecoder.class.getSimpleName(), new SocksInitRequestDecoder());
        pipeline.addLast(SocksMessageEncoder.class.getSimpleName(), new SocksMessageEncoder());
        pipeline.addLast(HttpProxyHandler.class.getSimpleName(), new HttpProxyHandler(logFilter, null, new InetSocketAddress(port), sslEnabled));

        // re-unify
        pipeline.addLast("socksUnification", new ProxyUnificationHandler(sslEnabled, false, port));
        pipeline.remove(this);
View Full Code Here


                // Create a default pipeline implementation.
                ChannelPipeline pipeline = ch.pipeline();

                // add SOCKS decoder and encoder
                pipeline.addLast(SocksInitRequestDecoder.class.getSimpleName(), new SocksInitRequestDecoder());
                pipeline.addLast(SocksMessageEncoder.class.getSimpleName(), new SocksMessageEncoder());

                // add handlers
                pipeline.addLast(SocksProxyHandler.class.getSimpleName(), new SocksProxyHandler(port != null ? new InetSocketAddress(port) : null, false));
            }
        }, socksPort, true);
View Full Code Here

TOP

Related Classes of io.netty.handler.codec.socks.SocksMessageEncoder

Copyright © 2018 www.massapicom. 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.