io.netty.handler.codec.socks.SocksCmdResponse Java Examples
The following examples show how to use
io.netty.handler.codec.socks.SocksCmdResponse.
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: SocksServerConnectHandler.java From NSS with Apache License 2.0 | 4 votes |
private SocksCmdResponse getSuccessResponse(SocksCmdRequest request) { return new SocksCmdResponse(SocksCmdStatus.SUCCESS, request.addressType()); }
Example #2
Source File: SocksServerConnectHandler.java From NSS with Apache License 2.0 | 4 votes |
private SocksCmdResponse getFailureResponse(SocksCmdRequest request) { return new SocksCmdResponse(SocksCmdStatus.FAILURE, request.addressType()); }
Example #3
Source File: Socks5ProxyServerHandlerBuilder.java From sissi with Apache License 2.0 | 4 votes |
private ByteBuf buildCmd(BytestreamsProxy proxy) { ByteBuf buf = Unpooled.buffer(); new SocksCmdResponseWrap(proxy, new SocksCmdResponse(SocksCmdStatus.SUCCESS, SocksAddressType.DOMAIN)).encodeAsByteBuf(buf); return buf; }
Example #4
Source File: Socks5ProxyServerHandlerBuilder.java From sissi with Apache License 2.0 | 4 votes |
protected SocksCmdResponseWrap(BytestreamsProxy proxy, SocksCmdResponse cmd) { super(cmd.responseType()); this.cmd = cmd; this.proxy = proxy; }