Package alt.java.net
Interface Socket
-
- All Known Implementing Classes:
MockSocket,SocketImpl
public interface Socket
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()java.net.InetAddressgetInetAddress()java.io.InputStreamgetInputStream()booleangetKeepAlive()java.net.InetAddressgetLocalAddress()intgetLocalPort()java.io.OutputStreamgetOutputStream()intgetPort()intgetReceiveBufferSize()intgetSendBufferSize()intgetSoLinger()intgetSoTimeout()booleangetTcpNoDelay()voidsetKeepAlive(boolean on)voidsetReceiveBufferSize(int size)voidsetSendBufferSize(int size)voidsetSoLinger(boolean on, int linger)voidsetSoTimeout(int timeout)voidsetTcpNoDelay(boolean on)voidshutdownInput()voidshutdownOutput()
-
-
-
Method Detail
-
getInetAddress
java.net.InetAddress getInetAddress()
-
getLocalAddress
java.net.InetAddress getLocalAddress()
-
getPort
int getPort()
-
getLocalPort
int getLocalPort()
-
getInputStream
java.io.InputStream getInputStream() throws java.io.IOException- Throws:
java.io.IOException
-
getOutputStream
java.io.OutputStream getOutputStream() throws java.io.IOException- Throws:
java.io.IOException
-
setTcpNoDelay
void setTcpNoDelay(boolean on) throws java.net.SocketException- Throws:
java.net.SocketException
-
getTcpNoDelay
boolean getTcpNoDelay() throws java.net.SocketException- Throws:
java.net.SocketException
-
setSoLinger
void setSoLinger(boolean on, int linger) throws java.net.SocketException- Throws:
java.net.SocketException
-
getSoLinger
int getSoLinger() throws java.net.SocketException- Throws:
java.net.SocketException
-
setSoTimeout
void setSoTimeout(int timeout) throws java.net.SocketException- Throws:
java.net.SocketException
-
getSoTimeout
int getSoTimeout() throws java.net.SocketException- Throws:
java.net.SocketException
-
setSendBufferSize
void setSendBufferSize(int size) throws java.net.SocketException- Throws:
java.net.SocketException
-
getSendBufferSize
int getSendBufferSize() throws java.net.SocketException- Throws:
java.net.SocketException
-
setReceiveBufferSize
void setReceiveBufferSize(int size) throws java.net.SocketException- Throws:
java.net.SocketException
-
getReceiveBufferSize
int getReceiveBufferSize() throws java.net.SocketException- Throws:
java.net.SocketException
-
setKeepAlive
void setKeepAlive(boolean on) throws java.net.SocketException- Throws:
java.net.SocketException
-
getKeepAlive
boolean getKeepAlive() throws java.net.SocketException- Throws:
java.net.SocketException
-
close
void close() throws java.io.IOException- Throws:
java.io.IOException
-
shutdownInput
void shutdownInput() throws java.io.IOException- Throws:
java.io.IOException
-
shutdownOutput
void shutdownOutput() throws java.io.IOException- Throws:
java.io.IOException
-
-