connectbot/sshlib

View on GitHub
src/main/java/com/trilead/ssh2/ProxyData.java

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

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;
}