Home / Function/ setNetworkInterface() — netty Function Reference

setNetworkInterface() — netty Function Reference

Architecture documentation for the setNetworkInterface() function in LinuxSocket.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  a2dd8161_7d60_315b_8bb9_31aa1d70c12a["setNetworkInterface()"]
  b60ae45e_66b1_2a0f_625b_421b64bfcb66["LinuxSocket"]
  a2dd8161_7d60_315b_8bb9_31aa1d70c12a -->|defined in| b60ae45e_66b1_2a0f_625b_421b64bfcb66
  0e121858_6d09_a7ae_8a93_1f4bde13ae3a["setInterface()"]
  a2dd8161_7d60_315b_8bb9_31aa1d70c12a -->|calls| 0e121858_6d09_a7ae_8a93_1f4bde13ae3a
  e153647a_353a_1569_6039_2670f6c0a5c4["interfaceIndex()"]
  a2dd8161_7d60_315b_8bb9_31aa1d70c12a -->|calls| e153647a_353a_1569_6039_2670f6c0a5c4
  style a2dd8161_7d60_315b_8bb9_31aa1d70c12a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-io_uring/src/main/java/io/netty/channel/uring/LinuxSocket.java lines 62–69

    void setNetworkInterface(NetworkInterface netInterface) throws IOException {
        InetAddress address = deriveInetAddress(netInterface, family() == SocketProtocolFamily.INET6);
        if (address.equals(family() == SocketProtocolFamily.INET ? INET_ANY : INET6_ANY)) {
            throw new IOException("NetworkInterface does not support " + family());
        }
        final NativeInetAddress nativeAddress = NativeInetAddress.newInstance(address);
        setInterface(intValue(), ipv6, nativeAddress.address(), nativeAddress.scopeId(), interfaceIndex(netInterface));
    }

Domain

Subdomains

Frequently Asked Questions

What does setNetworkInterface() do?
setNetworkInterface() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/LinuxSocket.java.
Where is setNetworkInterface() defined?
setNetworkInterface() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/LinuxSocket.java at line 62.
What does setNetworkInterface() call?
setNetworkInterface() calls 2 function(s): interfaceIndex, setInterface.

Analyze Your Own Codebase

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

Try Supermodel Free