Class AnnounceEndpoint

java.lang.Object
com.frostwire.jlibtorrent.AnnounceEndpoint

public class AnnounceEndpoint extends Object
Announces are sent to each tracker using every listen socket, this class holds information about one listen socket for one tracker.

This class is a lightweight version of the native announce_endpoint, and only carries a subset of all the information. However, it's completely open for custom use or optimization to accommodate client necessities.

  • Constructor Details

  • Method Details

    • swig

      public announce_endpoint swig()
      Returns:
      the native object
    • localEndpoint

      public TcpEndpoint localEndpoint()
      The local endpoint of the listen interface associated with this endpoint.
      Returns:
      the local endpoint
    • enabled

      public boolean enabled()
      Set to false to not announce from this endpoint.
    • infohashV1

      public AnnounceInfohash infohashV1()
      Torrents can be announced using multiple info hashes for different protocol versions.

      This is for version 1 (SHA1).

      Returns:
      the V1 announce infohash
    • infohashV2

      public AnnounceInfohash infohashV2()
      Torrents can be announced using multiple info hashes for different protocol versions.

      This is for version 2 (truncated SHA-256).

      Returns:
      the V2 announce infohash