equal_by_ip
Description:
Tests if this and addr2
have the same IP address.
This method can be used with hash_by_ip to create a GenericSet that hashes on IP address.
This would be used to distinguish hosts in situations where different virtual hosts on the same IP address should be considered the same. Eg, if "www.example.com" and "www.example.net" have the same IP address, then a single connection can be used to talk to either of them.
See also equal_by_name, which compares by name rather than by IP address.
Parameters:
this |
a Address with a resolved IP address |
addr2 |
another Address with a resolved IP address |
Returns:
whether or not this and |