Uploaded image for project: 'Commons JCS'
  1. Commons JCS
  2. JCS-46

Allow TTL to be overridden for UDPDiscoverySender

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • jcs-3.0
    • TCP Lateral Cache
    • None

    Description

      MulticastSocket defaults TTL for DatagramPackets to 1. This limits usefulness of the feature. There should be a way to override the TTL through configuration - i.e.: jcs.auxiliary.LTCP.attributes.UdpTTL=4

      Assuming m_ttlOverride is available as a member variable - the change boils down to setting the ttl before the packet is sent - something like:

      m_localSocket.setTimeToLive(m_ttlOverride);
      m_localSocket.send( packet );

      See MulticastSocket for more details.

      Attachments

        Activity

          People

            tv Thomas Vandahl
            luxmatic Lux Matic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: