Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)