Package zmq.io.net.tcp
Class TcpUtils
java.lang.Object
zmq.io.net.tcp.TcpUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interfaceprivate static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidenableIpv4Mapping(SelectableChannel channel) static AddressgetPeerIpAddress(SocketChannel channel) static booleansetIpTypeOfService(Channel channel, int tos) private static booleansetOption(Channel channel, TcpUtils.OptionSetter setter) static booleansetReuseAddress(Channel channel, boolean reuse) static booleansetTcpReceiveBuffer(Channel channel, int rcvbuf) static booleansetTcpSendBuffer(Channel channel, int sndbuf) static voidtuneTcpKeepalives(SocketChannel channel, int tcpKeepAlive, int tcpKeepAliveCnt, int tcpKeepAliveIdle, int tcpKeepAliveIntvl) static voidtuneTcpSocket(SocketChannel channel) static voidunblockSocket(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
-