Package zmq.io.net.tcp
Class TcpUtils
java.lang.Object
zmq.io.net.tcp.TcpUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interface
private static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
enableIpv4Mapping
(SelectableChannel channel) static Address
getPeerIpAddress
(SocketChannel channel) static boolean
setIpTypeOfService
(Channel channel, int tos) private static boolean
setOption
(Channel channel, TcpUtils.OptionSetter setter) static boolean
setReuseAddress
(Channel channel, boolean reuse) static boolean
setTcpReceiveBuffer
(Channel channel, int rcvbuf) static boolean
setTcpSendBuffer
(Channel channel, int sndbuf) static void
tuneTcpKeepalives
(SocketChannel channel, int tcpKeepAlive, int tcpKeepAliveCnt, int tcpKeepAliveIdle, int tcpKeepAliveIntvl) static void
tuneTcpSocket
(SocketChannel channel) static void
unblockSocket
(SelectableChannel... channels)
-
Constructor Details
-
TcpUtils
private TcpUtils()
-
-
Method Details
-
tuneTcpSocket
- Throws:
IOException
-
tuneTcpKeepalives
public static void tuneTcpKeepalives(SocketChannel channel, int tcpKeepAlive, int tcpKeepAliveCnt, int tcpKeepAliveIdle, int tcpKeepAliveIntvl) throws IOException - Throws:
IOException
-
setTcpReceiveBuffer
-
setTcpSendBuffer
-
setIpTypeOfService
-
setReuseAddress
-
setOption
-
unblockSocket
- Throws:
IOException
-
enableIpv4Mapping
-
getPeerIpAddress
-