Package io.netty5.channel.unix
Class RecvFromAddressDomainSocket
- java.lang.Object
-
- io.netty5.channel.unix.RecvFromAddressDomainSocket
-
- All Implemented Interfaces:
WritableComponentProcessor<IOException>
@UnstableApi public final class RecvFromAddressDomainSocket extends Object implements WritableComponentProcessor<IOException>
This class facilitates datagram reads from domain sockets, into buffers.Internal usage only!
-
-
Constructor Summary
Constructors Constructor Description RecvFromAddressDomainSocket(Socket socket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanprocess(int index, WritableComponent component)Process the given component at the given index in theBuffer.forEachWritable(int, WritableComponentProcessor)iteration}.DomainDatagramSocketAddressremoteAddress()
-
-
-
Constructor Detail
-
RecvFromAddressDomainSocket
public RecvFromAddressDomainSocket(Socket socket)
-
-
Method Detail
-
process
public boolean process(int index, WritableComponent component) throws IOExceptionDescription copied from interface:WritableComponentProcessorProcess the given component at the given index in theBuffer.forEachWritable(int, WritableComponentProcessor)iteration}.The component object itself is only valid during this call, but the
byte buffers, arrays, and native address pointers obtained from it, will be valid until anyownershiprequiring operation is performed on the buffer.- Specified by:
processin interfaceWritableComponentProcessor<IOException>- Parameters:
index- The current index of the given buffer component, based on the initial index passed to theBuffer.forEachWritable(int, WritableComponentProcessor)method.component- The current buffer component being processed.- Returns:
trueif the iteration should continue and more components should be processed, otherwisefalseto stop the iteration early.- Throws:
IOException
-
remoteAddress
public DomainDatagramSocketAddress remoteAddress()
-
-