| 351 | |
| 352 | |
| 353 | bool IPAddress::operator < (const IPAddress& a) const |
| 354 | { |
| 355 | poco_socklen_t l1 = length(); |
| 356 | poco_socklen_t l2 = a.length(); |
| 357 | if (l1 == l2) |
| 358 | { |
| 359 | #if defined(POCO_HAVE_IPv6) |
| 360 | if ( scope() != a.scope() ) |
| 361 | return scope() < a.scope(); |
| 362 | #endif |
| 363 | return std::memcmp(addr(), a.addr(), l1) < 0; |
| 364 | } |
| 365 | else return l1 < l2; |
| 366 | } |
| 367 | |
| 368 | |
| 369 | bool IPAddress::operator <= (const IPAddress& a) const |