Home / Function/ sendFd() — netty Function Reference

sendFd() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

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

    public final int sendFd(int fdToSend) throws IOException {
        int res = sendFd(fd, fdToSend);
        if (res >= 0) {
            return res;
        }
        if (res == ERRNO_EAGAIN_NEGATIVE || res == ERRNO_EWOULDBLOCK_NEGATIVE) {
            // Everything consumed so just return -1 here.
            return -1;
        }
        throw newIOException("sendFd", res);
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free