Java 类io.netty.handler.codec.socks.SocksCmdStatus 实例源码

项目:NSS    文件:SocksServerConnectHandler.java   
private SocksCmdResponse getSuccessResponse(SocksCmdRequest request) {
    return new SocksCmdResponse(SocksCmdStatus.SUCCESS,
            request.addressType());
}
项目:NSS    文件:SocksServerConnectHandler.java   
private SocksCmdResponse getFailureResponse(SocksCmdRequest request) {
    return new SocksCmdResponse(SocksCmdStatus.FAILURE,
            request.addressType());
}
项目:sissi    文件:Socks5ProxyServerHandlerBuilder.java   
private ByteBuf buildCmd(BytestreamsProxy proxy) {
    ByteBuf buf = Unpooled.buffer();
    new SocksCmdResponseWrap(proxy, new SocksCmdResponse(SocksCmdStatus.SUCCESS, SocksAddressType.DOMAIN)).encodeAsByteBuf(buf);
    return buf;
}