Package alt.java.net
Interface Socket
- All Known Implementing Classes:
MockSocket
,SocketImpl
public interface Socket
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
int
int
getPort()
int
int
int
int
boolean
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
void
-
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
-