Address.equalByIp

Tests if @addr1 and @addr2 have the same IP address. This method can be used with soup_address_hash_by_ip() to create a #GHashTable 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 soup_address_equal_by_name(), which compares by name rather than by IP address.

class Address
bool
equalByIp

Parameters

addr2 Address

another #SoupAddress with a resolved IP address

Return Value

Type: bool

whether or not @addr1 and @addr2 have the same IP address.

Meta

Since

2.26