public interface ChronicleSocket
| Modifier and Type | Method and Description |
|---|---|
int |
getLocalPort() |
Object |
getLocalSocketAddress() |
int |
getReceiveBufferSize() |
Object |
getRemoteSocketAddress() |
int |
getSendBufferSize() |
void |
setReceiveBufferSize(int tcpBuffer) |
void |
setSendBufferSize(int tcpBuffer) |
void |
setSoLinger(boolean on,
int linger)
Enable/disable
SO_LINGER with the specified linger time in seconds. |
void |
setSoTimeout(int i) |
void |
setTcpNoDelay(boolean tcpNoDelay) |
void |
shutdownInput() |
void |
shutdownOutput() |
void setTcpNoDelay(boolean tcpNoDelay)
throws SocketException
SocketExceptionint getReceiveBufferSize()
throws SocketException
SocketExceptionvoid setReceiveBufferSize(int tcpBuffer)
throws SocketException
SocketExceptionint getSendBufferSize()
throws SocketException
SocketExceptionvoid setSendBufferSize(int tcpBuffer)
throws SocketException
SocketExceptionvoid setSoTimeout(int i)
throws SocketException
SocketExceptionvoid setSoLinger(boolean on,
int linger)
throws SocketException
SO_LINGER with the specified linger time in seconds. The maximum timeout value is platform
specific.
The setting only affects socket close.on - whether or not to linger on.linger - how long to linger for, if on is true.SocketException - if there is an error in the underlying protocol, such as a TCP error.IllegalArgumentException - if the linger value is negative.void shutdownInput()
throws IOException
IOExceptionvoid shutdownOutput()
throws IOException
IOExceptionObject getRemoteSocketAddress()
Object getLocalSocketAddress()
int getLocalPort()
Copyright © 2023. All rights reserved.