Class TcpUtils
java.lang.Object
zmq.io.net.tcp.TcpUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidenableIpv4Mapping(SelectableChannel channel) static AddressgetPeerIpAddress(SocketChannel channel) static booleansetIpTypeOfService(Channel channel, int tos) 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)
-
Method Details
-
tuneTcpSocket
- Throws:
IOException
-
setTcpReceiveBuffer
-
setTcpSendBuffer
-
setIpTypeOfService
-
setReuseAddress
-
tuneTcpKeepalives
public static void tuneTcpKeepalives(SocketChannel channel, int tcpKeepAlive, int tcpKeepAliveCnt, int tcpKeepAliveIdle, int tcpKeepAliveIntvl) -
unblockSocket
- Throws:
IOException
-
enableIpv4Mapping
-
getPeerIpAddress
-