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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPortclose, getInputStream, getOutputStreamgetSoTimeout, setSoTimeoutpublic SocketTransport(String hostname, int port) throws IOException
hostname - port - IOExceptionpublic String getHost()
getHost in interface SshTransportpublic SshTransport duplicate() throws IOException
SshTransportduplicate in interface SshTransportIOExceptionCopyright © 2025. All rights reserved.