List of usage examples for io.netty.handler.codec.socks SocksInitRequest SocksInitRequest
public SocksInitRequest(List<SocksAuthScheme> authSchemes)
From source file:com.xx_dev.apn.socks.test.SocksClientHandler.java
License:Apache License
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { super.channelActive(ctx); ctx.writeAndFlush(new SocksInitRequest(new ArrayList<SocksAuthScheme>(0))); }
From source file:org.msgpack.rpc.extension.socks.SocksProxyHandler.java
License:Open Source License
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { List<SocksAuthScheme> lstAuth = new ArrayList<>(); lstAuth.add(SocksAuthScheme.NO_AUTH); SocksInitRequest si = new SocksInitRequest(lstAuth); ctx.writeAndFlush(si);/*from w w w . ja va 2s . com*/ }