private SocksCmdResponse getSuccessResponse(SocksCmdRequest request) { return new SocksCmdResponse(SocksCmdStatus.SUCCESS, request.addressType()); }
private SocksCmdResponse getFailureResponse(SocksCmdRequest request) { return new SocksCmdResponse(SocksCmdStatus.FAILURE, request.addressType()); }
private ByteBuf buildCmd(BytestreamsProxy proxy) { ByteBuf buf = Unpooled.buffer(); new SocksCmdResponseWrap(proxy, new SocksCmdResponse(SocksCmdStatus.SUCCESS, SocksAddressType.DOMAIN)).encodeAsByteBuf(buf); return buf; }