alt.java.net
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 Socket
public java.net.InetAddress getLocalAddress()
getLocalAddress
in interface Socket
public int getLocalPort()
getLocalPort
in interface Socket
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface Socket
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface Socket
java.io.IOException
public void setTcpNoDelay(boolean on) throws java.net.SocketException
setTcpNoDelay
in interface Socket
java.net.SocketException
public boolean getTcpNoDelay() throws java.net.SocketException
getTcpNoDelay
in interface Socket
java.net.SocketException
public void setSoLinger(boolean on, int linger) throws java.net.SocketException
setSoLinger
in interface Socket
java.net.SocketException
public int getSoLinger() throws java.net.SocketException
getSoLinger
in interface Socket
java.net.SocketException
public void setSoTimeout(int timeout) throws java.net.SocketException
setSoTimeout
in interface Socket
java.net.SocketException
public int getSoTimeout() throws java.net.SocketException
getSoTimeout
in interface Socket
java.net.SocketException
public void setSendBufferSize(int size) throws java.net.SocketException
setSendBufferSize
in interface Socket
java.net.SocketException
public int getSendBufferSize() throws java.net.SocketException
getSendBufferSize
in interface Socket
java.net.SocketException
public void setReceiveBufferSize(int size) throws java.net.SocketException
setReceiveBufferSize
in interface Socket
java.net.SocketException
public int getReceiveBufferSize() throws java.net.SocketException
getReceiveBufferSize
in interface Socket
java.net.SocketException
public void setKeepAlive(boolean on) throws java.net.SocketException
setKeepAlive
in interface Socket
java.net.SocketException
public boolean getKeepAlive() throws java.net.SocketException
getKeepAlive
in interface Socket
java.net.SocketException
public void close() throws java.io.IOException
public void shutdownInput() throws java.io.IOException
shutdownInput
in interface Socket
java.io.IOException
public void shutdownOutput() throws java.io.IOException
shutdownOutput
in interface Socket
java.io.IOException
Copyright © 2002 Mock Objects. All Rights Reserved.