matchesEndpoint

fun matchesEndpoint(otherHost: String, otherPort: Int): Boolean

True if this peer's endpoint equals (otherHost, otherPort). Endpoint identity is (address, port). This is the port of the torrent_peer_equal predicate for the IP case. Compares by parsed address when both hosts are literal IPs (so "127.0.0.1" and "127.000.000.001" match), falling back to string equality otherwise.