Class SocketClient
java.lang.Object
net.schmizz.sshj.SocketClient
- Direct Known Subclasses:
SSHClient
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidconnect(String hostname, int port, InetAddress localAddr, int localPort) voidconnect(InetAddress host) voidconnect(InetAddress host, int port) voidconnect(InetAddress host, int port, InetAddress localAddr, int localPort) voidconnectVia(Channel channel, String hostname, int port) voidconnectVia(DirectConnection directConnection) Connect to a remote address via a direct TCP/IP connection from the server.voidintintintintbooleanprotected InetSocketAddressmakeInetSocketAddress(String hostname, int port) voidsetConnectTimeout(int connectTimeout) voidsetSocketFactory(SocketFactory factory) voidsetTimeout(int timeout)
-
Method Details
-
makeInetSocketAddress
-
connect
- Throws:
IOException
-
connect
- Throws:
IOException
-
connect
public void connect(String hostname, int port, InetAddress localAddr, int localPort) throws IOException - Throws:
IOException
-
connectVia
- Throws:
IOException
-
connectVia
Connect to a remote address via a direct TCP/IP connection from the server.- Throws:
IOException
-
connect
- Throws:
IOException
-
connect
- Throws:
IOException
-
connect
public void connect(InetAddress host, int port, InetAddress localAddr, int localPort) throws IOException - Throws:
IOException
-
disconnect
- Throws:
IOException
-
isConnected
public boolean isConnected() -
getLocalPort
public int getLocalPort() -
getLocalAddress
-
getRemoteHostname
-
getRemotePort
public int getRemotePort() -
getRemoteAddress
-
setSocketFactory
-
getSocketFactory
-
getConnectTimeout
public int getConnectTimeout() -
setConnectTimeout
public void setConnectTimeout(int connectTimeout) -
getTimeout
public int getTimeout() -
setTimeout
public void setTimeout(int timeout) -
getSocket
-