Home / Function/ setOption() — netty Function Reference

setOption() — netty Function Reference

Architecture documentation for the setOption() function in KQueueDatagramChannelConfig.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  0efa1fa2_0a73_01c1_be18_cc4ad5691287["setOption()"]
  196ab3fc_d369_1feb_a394_4c644a7a5c7e["KQueueDatagramChannelConfig"]
  0efa1fa2_0a73_01c1_be18_cc4ad5691287 -->|defined in| 196ab3fc_d369_1feb_a394_4c644a7a5c7e
  385202a3_5627_21fa_6eca_3f728169c4a2["setActiveOnOpen()"]
  0efa1fa2_0a73_01c1_be18_cc4ad5691287 -->|calls| 385202a3_5627_21fa_6eca_3f728169c4a2
  style 0efa1fa2_0a73_01c1_be18_cc4ad5691287 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueDatagramChannelConfig.java lines 100–132

    @Override
    @SuppressWarnings("deprecation")
    public <T> boolean setOption(ChannelOption<T> option, T value) {
        validate(option, value);

        if (option == SO_BROADCAST) {
            setBroadcast((Boolean) value);
        } else if (option == SO_RCVBUF) {
            setReceiveBufferSize((Integer) value);
        } else if (option == SO_SNDBUF) {
            setSendBufferSize((Integer) value);
        } else if (option == SO_REUSEADDR) {
            setReuseAddress((Boolean) value);
        } else if (option == IP_MULTICAST_LOOP_DISABLED) {
            setLoopbackModeDisabled((Boolean) value);
        } else if (option == IP_MULTICAST_ADDR) {
            setInterface((InetAddress) value);
        } else if (option == IP_MULTICAST_IF) {
            setNetworkInterface((NetworkInterface) value);
        } else if (option == IP_MULTICAST_TTL) {
            setTimeToLive((Integer) value);
        } else if (option == IP_TOS) {
            setTrafficClass((Integer) value);
        } else if (option == DATAGRAM_CHANNEL_ACTIVE_ON_REGISTRATION) {
            setActiveOnOpen((Boolean) value);
        } else if (option == SO_REUSEPORT) {
            setReusePort((Boolean) value);
        } else {
            return super.setOption(option, value);
        }

        return true;
    }

Domain

Subdomains

Frequently Asked Questions

What does setOption() do?
setOption() is a function in the netty codebase, defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueDatagramChannelConfig.java.
Where is setOption() defined?
setOption() is defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueDatagramChannelConfig.java at line 100.
What does setOption() call?
setOption() calls 1 function(s): setActiveOnOpen.

Analyze Your Own Codebase

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

Try Supermodel Free