if (inSession == null && outSession == null)
throw new IOException(prefix()
+ "Neither connection could be established. ");
BytestreamSession session = testAndGetMediatedBidirectionalBytestream(
inSession, outSession, true);
return new BinaryChannel(session, NetTransferMode.SOCKS5_MEDIATED);
}