aboutsummaryrefslogtreecommitdiffstats
path: root/sshlib/src/main/java/com/trilead/ssh2/ProxyData.java
blob: 864d7a01b2aa27fb573c7d90ce2074c93f71dea9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.trilead.ssh2;

import java.io.IOException;
import java.net.Socket;

/**
 * An abstract interface implemented by all proxy data implementations.
 * 
 * @see HTTPProxyData
 * 
 * @author Christian Plattner, plattner@trilead.com
 * @version $Id: ProxyData.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $
 */

public interface ProxyData
{
	/**
	 * Connects the socket to the given destination using the proxy method that this instance
	 * represents.
	 * @param hostname hostname of end host (not proxy)
	 * @param port port of end host (not proxy)
	 * @param connectTimeout number of seconds before giving up on connecting to end host
	 * @throws IOException if the connection could not be completed
	 * @return connected socket instance
	 */
	Socket openConnection(String hostname, int port, int connectTimeout) throws IOException;
}