Home / Function/ socketIsEmpty() — netty Function Reference

socketIsEmpty() — netty Function Reference

Architecture documentation for the socketIsEmpty() function in AbstractIoUringServerChannel.java from the netty codebase.

Function java Buffer Search called by 1

Entity Profile

Dependency Diagram

graph TD
  f8ef9236_8a90_766b_a195_a878830260f0["socketIsEmpty()"]
  4efc122f_d4e7_90e6_51cb_c7fd75b903c4["AbstractIoUringServerChannel"]
  f8ef9236_8a90_766b_a195_a878830260f0 -->|defined in| 4efc122f_d4e7_90e6_51cb_c7fd75b903c4
  e2ee99fb_f186_acab_0b67_59f9b2eebadd["readComplete0()"]
  e2ee99fb_f186_acab_0b67_59f9b2eebadd -->|calls| f8ef9236_8a90_766b_a195_a878830260f0
  style f8ef9236_8a90_766b_a195_a878830260f0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-io_uring/src/main/java/io/netty/channel/uring/AbstractIoUringServerChannel.java lines 288–294

    @Override
    protected boolean socketIsEmpty(int flags) {
        // IORING_CQE_F_SOCK_NONEMPTY is used for accept since IORING_ACCEPT_DONTWAIT was added.
        // See https://github.com/axboe/liburing/wiki/What's-new-with-io_uring-in-6.10
        return IoUring.isAcceptNoWaitSupported() &&
                IoUring.isCqeFSockNonEmptySupported() && (flags & Native.IORING_CQE_F_SOCK_NONEMPTY) == 0;
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does socketIsEmpty() do?
socketIsEmpty() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/AbstractIoUringServerChannel.java.
Where is socketIsEmpty() defined?
socketIsEmpty() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/AbstractIoUringServerChannel.java at line 288.
What calls socketIsEmpty()?
socketIsEmpty() is called by 1 function(s): readComplete0.

Analyze Your Own Codebase

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

Try Supermodel Free