Top Constructors Methods
io.netty5.channel.unix

public final Class UnixChannelUtil

extends Object
Class Inheritance
Imports
io.netty5.buffer.Buffer, java.net.InetAddress, .InetSocketAddress, .UnknownHostException

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static InetSocketAddress
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.

pack-priv static boolean
isBufferCopyNeededForWrite(Buffer buffer, int iovMax)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

UnixChannelUtilback to summary
private UnixChannelUtil()

Method Detail

computeRemoteAddrback to summary
public static InetSocketAddress computeRemoteAddr(InetSocketAddress remoteAddr, InetSocketAddress osRemoteAddr)
isBufferCopyNeededForWriteback to summary
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.)

isBufferCopyNeededForWriteback to summary
pack-priv static boolean isBufferCopyNeededForWrite(Buffer buffer, int iovMax)