Package io.netty.channel.unix
Class UnixChannelUtil
- java.lang.Object
-
- io.netty.channel.unix.UnixChannelUtil
-
public final class UnixChannelUtil extends java.lang.Object
-
-
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.
-
-
-
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.)
-
computeRemoteAddr
public static java.net.InetSocketAddress computeRemoteAddr(java.net.InetSocketAddress remoteAddr, java.net.InetSocketAddress osRemoteAddr)
-
-