- java.lang.Object
-
- io.netty5.channel.unix.UnixChannelUtil
-
public final class UnixChannelUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InetSocketAddress
computeRemoteAddr(InetSocketAddress remoteAddr, InetSocketAddress osRemoteAddr)
static boolean
isBufferCopyNeededForWrite(Buffer buffer)
Checks if the specified buffer has memory address or is composed of n(n <= IOV_MAX) NIO direct buffers.
-
-
-
Method Detail
-
isBufferCopyNeededForWrite
public static boolean isBufferCopyNeededForWrite(Buffer buffer)
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.)
-
computeRemoteAddr
public static InetSocketAddress computeRemoteAddr(InetSocketAddress remoteAddr, InetSocketAddress osRemoteAddr)
-
-