io.netty.handler.codec.socksx.SocksPortUnificationServerHandler Java Examples
The following examples show how to use
io.netty.handler.codec.socksx.SocksPortUnificationServerHandler.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SocksServerInitializer.java From netty-4.1.22 with Apache License 2.0 | 5 votes |
@Override public void initChannel(SocketChannel ch) throws Exception { ch.pipeline().addLast( new LoggingHandler(LogLevel.DEBUG), new SocksPortUnificationServerHandler(), SocksServerHandler.INSTANCE); }
Example #2
Source File: SocksServerInitializer.java From shadowsocks-java with MIT License | 5 votes |
@Override public void initChannel(SocketChannel ch) throws Exception { ch.pipeline().addLast( // new LoggingHandler(LogLevel.INFO), new SocksPortUnificationServerHandler(), SocksServerHandler.INSTANCE); }
Example #3
Source File: SocksProxyHandler.java From nitmproxy with MIT License | 5 votes |
@Override public void handlerAdded(ChannelHandlerContext ctx) throws Exception { LOGGER.info("{} : handlerAdded", connectionInfo.toString(true)); Socks5ServerEncoder socks5ServerEncoder = new Socks5ServerEncoder(Socks5AddressEncoder.DEFAULT); SocksPortUnificationServerHandler socksPortUnificationServerHandler = new SocksPortUnificationServerHandler(socks5ServerEncoder); ctx.pipeline().addBefore(ctx.name(), null, socksPortUnificationServerHandler); }
Example #4
Source File: ProxyClientIntegrationTest.java From armeria with Apache License 2.0 | 5 votes |
@Override protected void configure(Channel ch) throws Exception { ch.pipeline().addLast(new SocksPortUnificationServerHandler()); ch.pipeline().addLast(DYNAMIC_HANDLER); ch.pipeline().addLast(new Socks4ProxyServerHandler()); ch.pipeline().addLast(new Socks5ProxyServerHandler()); ch.pipeline().addLast(new IntermediaryProxyServerHandler("socks")); }