Interface DatagramSessionConfig

    • Method Detail

      • setTrafficClass

        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)
      • isCloseOnPortUnreachable

        boolean isCloseOnPortUnreachable()
        If method returns true, it means session should be closed when a PortUnreachableException occurs.
        Returns:
        Tells if we should close if the port is unreachable
      • setCloseOnPortUnreachable

        void setCloseOnPortUnreachable​(boolean closeOnPortUnreachable)
        Sets if the session should be closed if an PortUnreachableException occurs.
        Parameters:
        closeOnPortUnreachable - true if we should close if the port is unreachable