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 boolean
process(int index, WritableComponent component)
Process the given component at the given index in theBuffer.forEachWritable(int, WritableComponentProcessor)
iteration}.DomainDatagramSocketAddress
remoteAddress()
-
-
-
Constructor Detail
-
RecvFromAddressDomainSocket
public RecvFromAddressDomainSocket(Socket socket)
-
-
Method Detail
-
process
public boolean process(int index, WritableComponent component) throws IOException
Description copied from interface:WritableComponentProcessor
Process 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 anyownership
requiring operation is performed on the buffer.- Specified by:
process
in 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:
true
if the iteration should continue and more components should be processed, otherwisefalse
to stop the iteration early.- Throws:
IOException
-
remoteAddress
public DomainDatagramSocketAddress remoteAddress()
-
-