io.netty.handler.codec.socks.SocksCmdStatus Java Examples
The following examples show how to use
io.netty.handler.codec.socks.SocksCmdStatus.
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; }