Home / Function/ recvFd() — netty Function Reference

recvFd() — netty Function Reference

Architecture documentation for the recvFd() function in Socket.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  1747c1d6_23be_6639_c608_46d30db61bec["recvFd()"]
  c1db2c0c_ff79_5334_3102_02a56efa545c["Socket"]
  1747c1d6_23be_6639_c608_46d30db61bec -->|defined in| c1db2c0c_ff79_5334_3102_02a56efa545c
  style 1747c1d6_23be_6639_c608_46d30db61bec fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-native-unix-common/src/main/java/io/netty/channel/unix/Socket.java lines 311–325

    public final int recvFd() throws IOException {
        int res = recvFd(fd);
        if (res > 0) {
            return res;
        }
        if (res == 0) {
            return -1;
        }

        if (res == ERRNO_EAGAIN_NEGATIVE || res == ERRNO_EWOULDBLOCK_NEGATIVE) {
            // Everything consumed so just return -1 here.
            return 0;
        }
        throw newIOException("recvFd", res);
    }

Domain

Subdomains

Frequently Asked Questions

What does recvFd() do?
recvFd() is a function in the netty codebase, defined in transport-native-unix-common/src/main/java/io/netty/channel/unix/Socket.java.
Where is recvFd() defined?
recvFd() is defined in transport-native-unix-common/src/main/java/io/netty/channel/unix/Socket.java at line 311.

Analyze Your Own Codebase

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

Try Supermodel Free