public class SocketTransport extends Socket implements SshTransport, SocketTimeoutSupport
Constructor and Description |
---|
SocketTransport(String hostname,
int port)
Connect the socket.
|
Modifier and Type | Method and Description |
---|---|
SshTransport |
duplicate()
Create a new copy of this transport and connect to the
same host:port combination.
|
String |
getHost()
Get the hostname of the connected host.
|
bind, close, connect, connect, getChannel, getInetAddress, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOutputStream, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPort
close, getInputStream, getOutputStream
getSoTimeout, setSoTimeout
public SocketTransport(String hostname, int port) throws IOException
hostname
- port
- IOException
public String getHost()
getHost
in interface SshTransport
public SshTransport duplicate() throws IOException
SshTransport
duplicate
in interface SshTransport
IOException
Copyright © 2024. All rights reserved.