Home / Function/ writeComplete0() — netty Function Reference

writeComplete0() — netty Function Reference

Architecture documentation for the writeComplete0() function in IoUringDomainSocketChannel.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  6ff3f324_f12d_4832_612d_719768c2f562["writeComplete0()"]
  dc99258d_71a6_9064_ca08_361c0964e22e["IoUringDomainSocketUnsafe"]
  6ff3f324_f12d_4832_612d_719768c2f562 -->|defined in| dc99258d_71a6_9064_ca08_361c0964e22e
  style 6ff3f324_f12d_4832_612d_719768c2f562 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringDomainSocketChannel.java lines 133–153

        @Override
        boolean writeComplete0(byte op, int res, int flags, short data, int outstanding) {
            if (op == Native.IORING_OP_SENDMSG) {
                writeId = 0;
                writeOpCode = 0;
                if (res == Native.ERRNO_ECANCELED_NEGATIVE) {
                    return true;
                }
                try {
                    int nativeCallResult = res >= 0 ? res : Errors.ioResult("io_uring sendmsg", res);
                    if (nativeCallResult >= 0) {
                        ChannelOutboundBuffer channelOutboundBuffer = unsafe().outboundBuffer();
                        channelOutboundBuffer.remove();
                    }
                } catch (Throwable throwable) {
                   handleWriteError(throwable);
                }
                return true;
            }
            return super.writeComplete0(op, res, flags, data, outstanding);
        }

Domain

Subdomains

Frequently Asked Questions

What does writeComplete0() do?
writeComplete0() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringDomainSocketChannel.java.
Where is writeComplete0() defined?
writeComplete0() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringDomainSocketChannel.java at line 133.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free