comparison src/ch/ethz/ssh2/Connection.java @ 289:d2ee20d9dff1 ganymed

start conversion from trilead to ganymed
author Carl Byington <carl@five-ten-sg.com>
date Fri, 18 Jul 2014 20:17:53 -0700
parents db9b028016de
children 9ae4ed7bb523
comparison
equal deleted inserted replaced
288:5824a1475be4 289:d2ee20d9dff1
1251 tm.setTcpNoDelay(enable); 1251 tm.setTcpNoDelay(enable);
1252 } 1252 }
1253 } 1253 }
1254 1254
1255 /** 1255 /**
1256 * Used to tell the library that the connection shall be established through
1257 * a proxy server. It only makes sense to call this method before calling
1258 * the {@link #connect() connect()} method.
1259 * <p>
1260 * At the moment, only HTTP proxies are supported.
1261 * <p>
1262 * Note: This method can be called any number of times. The
1263 * {@link #connect() connect()} method will use the value set in the last
1264 * preceding invocation of this method.
1265 *
1266 * @see HTTPProxyData
1267 *
1268 * @param proxy
1269 * Connection information about the proxy. If <code>null</code>,
1270 * then no proxy will be used (non surprisingly, this is also the
1271 * default).
1272 */
1273
1274 public synchronized void setProxyData(HTTPProxyData proxy) {
1275 this.proxy = proxy;
1276 }
1277
1278 /**
1256 * Request a remote port forwarding. 1279 * Request a remote port forwarding.
1257 * If successful, then forwarded connections will be redirected to the given target address. 1280 * If successful, then forwarded connections will be redirected to the given target address.
1258 * You can cancle a requested remote port forwarding by calling 1281 * You can cancle a requested remote port forwarding by calling
1259 * {@link #cancelRemotePortForwarding(int) cancelRemotePortForwarding()}. 1282 * {@link #cancelRemotePortForwarding(int) cancelRemotePortForwarding()}.
1260 * <p/> 1283 * <p/>