announcePeer
fun announcePeer(infoHash: Sha1Hash, endpoint: DhtEndpoint, now: Long, seed: Boolean = false, name: String? = null)
Record an announce_peer, the port of dht_default_storage::announce_peer. The peer is keyed by address family; re-announcing the same endpoint refreshes its timestamp/seed flag in place. A new torrent is created unless maxTorrents is reached, and a new peer is added unless maxPeersPerTorrent is reached.
Parameters
now
current time in epoch-seconds, used as the peer's added stamp.