Package alt.java.net
Interface Socket
- All Known Implementing Classes:
MockSocket,SocketImpl
public interface Socket
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanintintgetPort()intintintintbooleanvoidsetKeepAlive(boolean on) voidsetReceiveBufferSize(int size) voidsetSendBufferSize(int size) voidsetSoLinger(boolean on, int linger) voidsetSoTimeout(int timeout) voidsetTcpNoDelay(boolean on) voidvoid
-
Method Details
-
getInetAddress
InetAddress getInetAddress() -
getLocalAddress
InetAddress getLocalAddress() -
getPort
int getPort() -
getLocalPort
int getLocalPort() -
getInputStream
- Throws:
IOException
-
getOutputStream
- Throws:
IOException
-
setTcpNoDelay
- Throws:
SocketException
-
getTcpNoDelay
- Throws:
SocketException
-
setSoLinger
- Throws:
SocketException
-
getSoLinger
- Throws:
SocketException
-
setSoTimeout
- Throws:
SocketException
-
getSoTimeout
- Throws:
SocketException
-
setSendBufferSize
- Throws:
SocketException
-
getSendBufferSize
- Throws:
SocketException
-
setReceiveBufferSize
- Throws:
SocketException
-
getReceiveBufferSize
- Throws:
SocketException
-
setKeepAlive
- Throws:
SocketException
-
getKeepAlive
- Throws:
SocketException
-
close
- Throws:
IOException
-
shutdownInput
- Throws:
IOException
-
shutdownOutput
- Throws:
IOException
-