com.mindbright.ssh
public class SSHVersionSpySocket extends java.net.Socket
Constructor and Description |
---|
SSHVersionSpySocket(java.net.Socket origSocket) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.net.InetAddress |
getInetAddress() |
java.io.InputStream |
getInputStream() |
java.net.InetAddress |
getLocalAddress() |
int |
getLocalPort() |
int |
getMajorVersion() |
java.io.OutputStream |
getOutputStream() |
int |
getPort() |
int |
getSoLinger() |
int |
getSoTimeout() |
boolean |
getTcpNoDelay() |
void |
setSoLinger(boolean on,
int val) |
void |
setSoTimeout(int timeout) |
void |
setTcpNoDelay(boolean on) |
java.lang.String |
toString() |
bind, connect, connect, getChannel, getKeepAlive, getLocalSocketAddress, getOOBInline, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setTrafficClass, shutdownInput, shutdownOutput
public SSHVersionSpySocket(java.net.Socket origSocket) throws java.io.IOException
java.io.IOException
public int getMajorVersion() throws java.io.IOException
java.io.IOException
public java.net.InetAddress getInetAddress()
getInetAddress
in class java.net.Socket
public java.net.InetAddress getLocalAddress()
getLocalAddress
in class java.net.Socket
public int getPort()
getPort
in class java.net.Socket
public int getLocalPort()
getLocalPort
in class java.net.Socket
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class java.net.Socket
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in class java.net.Socket
java.io.IOException
public void setTcpNoDelay(boolean on) throws java.net.SocketException
setTcpNoDelay
in class java.net.Socket
java.net.SocketException
public boolean getTcpNoDelay() throws java.net.SocketException
getTcpNoDelay
in class java.net.Socket
java.net.SocketException
public void setSoLinger(boolean on, int val) throws java.net.SocketException
setSoLinger
in class java.net.Socket
java.net.SocketException
public int getSoLinger() throws java.net.SocketException
getSoLinger
in class java.net.Socket
java.net.SocketException
public void setSoTimeout(int timeout) throws java.net.SocketException
setSoTimeout
in class java.net.Socket
java.net.SocketException
public int getSoTimeout() throws java.net.SocketException
getSoTimeout
in class java.net.Socket
java.net.SocketException
public void close() throws java.io.IOException
close
in class java.net.Socket
java.io.IOException
public java.lang.String toString()
toString
in class java.net.Socket