|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.Socket
com.sshtools.net.SocketTransport
Extends a Socket to provide an SshTransport suitable for use in making connections using the SshConnector.
Constructor Summary | |
SocketTransport(java.lang.String hostname,
int port)
Connect the socket. |
Method Summary | |
SshTransport |
duplicate()
Create a new copy of this transport and connect to the same host:port combination. |
java.lang.String |
getHost()
Get the hostname of the connected host. |
Methods inherited from class java.net.Socket |
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, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.maverick.ssh.SshTransport |
getPort |
Methods inherited from interface com.maverick.ssh.SshIO |
close, getInputStream, getOutputStream |
Methods inherited from interface com.maverick.ssh.SocketTimeoutSupport |
getSoTimeout, setSoTimeout |
Constructor Detail |
public SocketTransport(java.lang.String hostname, int port) throws java.io.IOException
hostname
- port
-
java.io.IOException
Method Detail |
public java.lang.String getHost()
getHost
in interface SshTransport
public SshTransport duplicate() throws java.io.IOException
SshTransport
duplicate
in interface SshTransport
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |