return 0;
}
+int IpAddress::compareWhole(const IpAddress &rhs) const
+{
+ return memcmp(this, &rhs, sizeof(*this));
+}
+
bool IpAddress::operator ==(const IpAddress &s) const
{
return (0 == matchIPAddr(s));
*/
int matchIPAddr(const IpAddress &rhs) const;
+ /** Compare taking IP, port, protocol, etc. into account. Returns an
+ integer less than, equal to, or greater than zero if the object
+ is found, respectively, to be less than, to match, or to be greater
+ than rhs. The exact ordering algorithm is not specified and may change.
+ */
+ int compareWhole(const IpAddress &rhs) const;
+
/**
* Get RFC 3493 addrinfo structure from the IpAddress data
* for protocol-neutral socket operations.