| Constructor and Description |
|---|
SocketImpl(java.net.Socket socket) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.net.InetAddress |
getInetAddress() |
java.io.InputStream |
getInputStream() |
boolean |
getKeepAlive() |
java.net.InetAddress |
getLocalAddress() |
int |
getLocalPort() |
java.io.OutputStream |
getOutputStream() |
int |
getPort() |
int |
getReceiveBufferSize() |
int |
getSendBufferSize() |
int |
getSoLinger() |
int |
getSoTimeout() |
boolean |
getTcpNoDelay() |
void |
setKeepAlive(boolean on) |
void |
setReceiveBufferSize(int size) |
void |
setSendBufferSize(int size) |
void |
setSoLinger(boolean on,
int linger) |
void |
setSoTimeout(int timeout) |
void |
setTcpNoDelay(boolean on) |
void |
shutdownInput() |
void |
shutdownOutput() |
public java.net.InetAddress getInetAddress()
getInetAddress in interface Socketpublic java.net.InetAddress getLocalAddress()
getLocalAddress in interface Socketpublic int getLocalPort()
getLocalPort in interface Socketpublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface Socketjava.io.IOExceptionpublic java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface Socketjava.io.IOExceptionpublic void setTcpNoDelay(boolean on)
throws java.net.SocketException
setTcpNoDelay in interface Socketjava.net.SocketExceptionpublic boolean getTcpNoDelay()
throws java.net.SocketException
getTcpNoDelay in interface Socketjava.net.SocketExceptionpublic void setSoLinger(boolean on,
int linger)
throws java.net.SocketException
setSoLinger in interface Socketjava.net.SocketExceptionpublic int getSoLinger()
throws java.net.SocketException
getSoLinger in interface Socketjava.net.SocketExceptionpublic void setSoTimeout(int timeout)
throws java.net.SocketException
setSoTimeout in interface Socketjava.net.SocketExceptionpublic int getSoTimeout()
throws java.net.SocketException
getSoTimeout in interface Socketjava.net.SocketExceptionpublic void setSendBufferSize(int size)
throws java.net.SocketException
setSendBufferSize in interface Socketjava.net.SocketExceptionpublic int getSendBufferSize()
throws java.net.SocketException
getSendBufferSize in interface Socketjava.net.SocketExceptionpublic void setReceiveBufferSize(int size)
throws java.net.SocketException
setReceiveBufferSize in interface Socketjava.net.SocketExceptionpublic int getReceiveBufferSize()
throws java.net.SocketException
getReceiveBufferSize in interface Socketjava.net.SocketExceptionpublic void setKeepAlive(boolean on)
throws java.net.SocketException
setKeepAlive in interface Socketjava.net.SocketExceptionpublic boolean getKeepAlive()
throws java.net.SocketException
getKeepAlive in interface Socketjava.net.SocketExceptionpublic void close()
throws java.io.IOException
public void shutdownInput()
throws java.io.IOException
shutdownInput in interface Socketjava.io.IOExceptionpublic void shutdownOutput()
throws java.io.IOException
shutdownOutput in interface Socketjava.io.IOExceptionCopyright © 2002 Mock Objects. All Rights Reserved.