Interface DatagramChannelConfig

    • Method Detail

      • getSendBufferSize

        int getSendBufferSize()
        Gets the StandardSocketOptions.SO_SNDBUF option.
      • setSendBufferSize

        void setSendBufferSize​(int sendBufferSize)
        Sets the StandardSocketOptions.SO_SNDBUF option.
      • getReceiveBufferSize

        int getReceiveBufferSize()
        Gets the StandardSocketOptions.SO_RCVBUF option.
      • setReceiveBufferSize

        void setReceiveBufferSize​(int receiveBufferSize)
        Sets the StandardSocketOptions.SO_RCVBUF option.
      • getTrafficClass

        int getTrafficClass()
        Gets the StandardSocketOptions.IP_TOS option.
      • setTrafficClass

        void setTrafficClass​(int trafficClass)
        Gets the StandardSocketOptions.IP_TOS option.
      • isReuseAddress

        boolean isReuseAddress()
        Gets the StandardSocketOptions.SO_REUSEADDR option.
      • setReuseAddress

        void setReuseAddress​(boolean reuseAddress)
        Sets the StandardSocketOptions.SO_REUSEADDR option.
      • isBroadcast

        boolean isBroadcast()
        Gets the StandardSocketOptions.SO_BROADCAST option.
      • setBroadcast

        void setBroadcast​(boolean broadcast)
        Sets the StandardSocketOptions.SO_BROADCAST option.
      • isLoopbackModeDisabled

        boolean isLoopbackModeDisabled()
        Gets the StandardSocketOptions.IP_MULTICAST_LOOP option.
      • setLoopbackModeDisabled

        void setLoopbackModeDisabled​(boolean loopbackModeDisabled)
        Sets the StandardSocketOptions.IP_MULTICAST_LOOP option.
        Parameters:
        loopbackModeDisabled - true if and only if the loopback mode has been disabled
      • getTimeToLive

        int getTimeToLive()
        Gets the StandardSocketOptions.IP_MULTICAST_TTL option.
      • setTimeToLive

        void setTimeToLive​(int ttl)
        Sets the StandardSocketOptions.IP_MULTICAST_TTL option.
      • getInterface

        java.net.InetAddress getInterface()
        Gets the address of the network interface used for multicast packets.
      • setInterface

        void setInterface​(java.net.InetAddress interfaceAddress)
        Sets the address of the network interface used for multicast packets.
      • getNetworkInterface

        java.net.NetworkInterface getNetworkInterface()
        Gets the StandardSocketOptions.IP_MULTICAST_IF option.
      • setNetworkInterface

        void setNetworkInterface​(java.net.NetworkInterface networkInterface)
        Sets the StandardSocketOptions.IP_MULTICAST_IF option.