Home / Function/ AcceptedAddressMemory() — netty Function Reference

AcceptedAddressMemory() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  7680ded9_87cf_5b03_8d89_d666f8cde33f["AcceptedAddressMemory()"]
  912a3f10_b23d_c3fc_082b_f1ac98a5b06d["AcceptedAddressMemory"]
  7680ded9_87cf_5b03_8d89_d666f8cde33f -->|defined in| 912a3f10_b23d_c3fc_082b_f1ac98a5b06d
  20289d3a_0154_f5ec_19dc_c01f517935cb["AbstractIoUringServerChannel()"]
  20289d3a_0154_f5ec_19dc_c01f517935cb -->|calls| 7680ded9_87cf_5b03_8d89_d666f8cde33f
  style 7680ded9_87cf_5b03_8d89_d666f8cde33f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

        AcceptedAddressMemory() {
            acceptedAddressMemoryCleanable = Buffer.allocateDirectBufferWithNativeOrder(Native.SIZEOF_SOCKADDR_STORAGE);
            acceptedAddressMemory = acceptedAddressMemoryCleanable.buffer();
            acceptedAddressMemoryAddress = Buffer.memoryAddress(acceptedAddressMemory);
            acceptedAddressLengthMemoryCleanable = Buffer.allocateDirectBufferWithNativeOrder(Long.BYTES);
            acceptedAddressLengthMemory = acceptedAddressLengthMemoryCleanable.buffer();
            // Needs to be initialized to the size of acceptedAddressMemory.
            // See https://man7.org/linux/man-pages/man2/accept.2.html
            acceptedAddressLengthMemory.putLong(0, Native.SIZEOF_SOCKADDR_STORAGE);
            acceptedAddressLengthMemoryAddress = Buffer.memoryAddress(acceptedAddressLengthMemory);
        }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free