public final class UnixChannelUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static InetSocketAddress |
computeRemoteAddr(InetSocketAddress remoteAddr,
InetSocketAddress osRemoteAddr) |
static boolean |
deleteDomainSocketFile(String path)
Delete the file at
path but only if it is not a regular file, directory or symbolic link (i.e. it is
a socket inode as left behind by a bound domain socket). |
static boolean |
isBufferCopyNeededForWrite(io.netty.buffer.ByteBuf byteBuf)
Checks if the specified buffer has memory address or is composed of n(n <= IOV_MAX) NIO direct buffers.
|
public static boolean isBufferCopyNeededForWrite(io.netty.buffer.ByteBuf byteBuf)
public static boolean deleteDomainSocketFile(String path)
path but only if it is not a regular file, directory or symbolic link (i.e. it is
a socket inode as left behind by a bound domain socket). Symbolic links are never followed.
This requires Java 7 or later, on older versions nothing is deleted.true if the file was deleted.public static InetSocketAddress computeRemoteAddr(InetSocketAddress remoteAddr, InetSocketAddress osRemoteAddr)
Copyright © 2008–2026 The Netty Project. All rights reserved.