//---------------------------------------------------------------------------- bool IPAddress::operator >= (const IPAddress& a) const { px2_socklen_t l1 = GetAddrLength(); px2_socklen_t l2 = a.GetAddrLength(); if (l1 == l2) return std::memcmp(GetAddr(), a.GetAddr(), l1) >= 0; else return l1 > l2; }
//---------------------------------------------------------------------------- void SocketImpl::SetOption(int level, int option, const IPAddress& val) { SetRawOption(level, option, val.GetAddr(), val.GetAddrLength()); }