Package io.netty.channel.unix
Class UnixChannelUtil
java.lang.Object
io.netty.channel.unix.UnixChannelUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InetSocketAddress
computeRemoteAddr
(InetSocketAddress remoteAddr, InetSocketAddress osRemoteAddr) static boolean
isBufferCopyNeededForWrite
(ByteBuf byteBuf) Checks if the specified buffer has memory address or is composed of n(n invalid input: '<'= IOV_MAX) NIO direct buffers.(package private) static boolean
isBufferCopyNeededForWrite
(ByteBuf byteBuf, int iovMax)
-
Constructor Details
-
UnixChannelUtil
private UnixChannelUtil()
-
-
Method Details
-
isBufferCopyNeededForWrite
Checks if the specified buffer has memory address or is composed of n(n invalid input: '<'= IOV_MAX) NIO direct buffers. (We check this because otherwise we need to make it a new direct buffer.) -
isBufferCopyNeededForWrite
-
computeRemoteAddr
public static InetSocketAddress computeRemoteAddr(InetSocketAddress remoteAddr, InetSocketAddress osRemoteAddr)
-