Class DefaultDatagramSessionConfig

    • Constructor Detail

      • DefaultDatagramSessionConfig

        public DefaultDatagramSessionConfig()
        Creates a new instance.
    • Method Detail

      • isBroadcast

        public boolean isBroadcast()
        Returns:
        true if SO_BROADCAST is enabled.
        See Also:
        DatagramSocket.getBroadcast()
      • setBroadcast

        public void setBroadcast​(boolean broadcast)
        Parameters:
        broadcast - Tells if SO_BROACAST is enabled or not
        See Also:
        DatagramSocket.setBroadcast(boolean)
      • isReuseAddress

        public boolean isReuseAddress()
        Returns:
        true if SO_REUSEADDR is enabled.
        See Also:
        DatagramSocket.getReuseAddress()
      • setReuseAddress

        public void setReuseAddress​(boolean reuseAddress)
        Parameters:
        reuseAddress - Tells if SO_REUSEADDR is enabled or disabled
        See Also:
        DatagramSocket.setReuseAddress(boolean)
      • getReceiveBufferSize

        public int getReceiveBufferSize()
        Returns:
        the size of the receive buffer
        See Also:
        DatagramSocket.getReceiveBufferSize()
      • setReceiveBufferSize

        public void setReceiveBufferSize​(int receiveBufferSize)
        Parameters:
        receiveBufferSize - The size of the receive buffer
        See Also:
        DatagramSocket.setReceiveBufferSize(int)
      • getSendBufferSize

        public int getSendBufferSize()
        Returns:
        the size of the send buffer
        See Also:
        DatagramSocket.getSendBufferSize()
      • setSendBufferSize

        public void setSendBufferSize​(int sendBufferSize)
        Parameters:
        sendBufferSize - The size of the send buffer
        See Also:
        DatagramSocket.setSendBufferSize(int)
      • getTrafficClass

        public int getTrafficClass()
        Returns:
        the traffic class
        See Also:
        DatagramSocket.getTrafficClass()
      • setTrafficClass

        public void setTrafficClass​(int trafficClass)
        Parameters:
        trafficClass - The traffic class to set, one of IPTOS_LOWCOST (0x02) IPTOS_RELIABILITY (0x04), IPTOS_THROUGHPUT (0x08) or IPTOS_LOWDELAY (0x10)
        See Also:
        DatagramSocket.setTrafficClass(int)
      • isBroadcastChanged

        protected boolean isBroadcastChanged()
        Overrides:
        isBroadcastChanged in class AbstractDatagramSessionConfig
        Returns:
        true if and only if the broadcast property has been changed by its setter method. The system call related with the property is made only when this method returns true. By default, this method always returns true to simplify implementation of subclasses, but overriding the default behavior is always encouraged.
      • isReceiveBufferSizeChanged

        protected boolean isReceiveBufferSizeChanged()
        Overrides:
        isReceiveBufferSizeChanged in class AbstractDatagramSessionConfig
        Returns:
        true if and only if the receiveBufferSize property has been changed by its setter method. The system call related with the property is made only when this method returns true. By default, this method always returns true to simplify implementation of subclasses, but overriding the default behavior is always encouraged.
      • isReuseAddressChanged

        protected boolean isReuseAddressChanged()
        Overrides:
        isReuseAddressChanged in class AbstractDatagramSessionConfig
        Returns:
        true if and only if the reuseAddress property has been changed by its setter method. The system call related with the property is made only when this method returns true. By default, this method always returns true to simplify implementation of subclasses, but overriding the default behavior is always encouraged.
      • isSendBufferSizeChanged

        protected boolean isSendBufferSizeChanged()
        Overrides:
        isSendBufferSizeChanged in class AbstractDatagramSessionConfig
        Returns:
        true if and only if the sendBufferSize property has been changed by its setter method. The system call related with the property is made only when this method returns true. By default, this method always returns true to simplify implementation of subclasses, but overriding the default behavior is always encouraged.
      • isTrafficClassChanged

        protected boolean isTrafficClassChanged()
        Overrides:
        isTrafficClassChanged in class AbstractDatagramSessionConfig
        Returns:
        true if and only if the trafficClass property has been changed by its setter method. The system call related with the property is made only when this method returns true. By default, this method always returns true to simplify implementation of subclasses, but overriding the default behavior is always encouraged.