Package io.netty.channel.unix
Class UnixChannelUtil
- java.lang.Object
-
- io.netty.channel.unix.UnixChannelUtil
-
public final class UnixChannelUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description private
UnixChannelUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.net.InetSocketAddress
computeRemoteAddr(java.net.InetSocketAddress remoteAddr, java.net.InetSocketAddress osRemoteAddr)
static boolean
isBufferCopyNeededForWrite(ByteBuf byteBuf)
Checks if the specified buffer has memory address or is composed of n(n <= IOV_MAX) NIO direct buffers.(package private) static boolean
isBufferCopyNeededForWrite(ByteBuf byteBuf, int iovMax)
-
-
-
Method Detail
-
isBufferCopyNeededForWrite
public static boolean isBufferCopyNeededForWrite(ByteBuf byteBuf)
Checks if the specified buffer has memory address or is composed of n(n <= IOV_MAX) NIO direct buffers. (We check this because otherwise we need to make it a new direct buffer.)
-
isBufferCopyNeededForWrite
static boolean isBufferCopyNeededForWrite(ByteBuf byteBuf, int iovMax)
-
computeRemoteAddr
public static java.net.InetSocketAddress computeRemoteAddr(java.net.InetSocketAddress remoteAddr, java.net.InetSocketAddress osRemoteAddr)
-
-