| 199 | } |
| 200 | |
| 201 | bool SocketAddress::operator < (const SocketAddress& address) const { |
| 202 | if (family() < address.family()) |
| 203 | return true; |
| 204 | if (family() != address.family()) |
| 205 | return false; |
| 206 | if (host() < address.host()) |
| 207 | return true; |
| 208 | if (host() != address.host()) |
| 209 | return false; |
| 210 | return (port() < address.port()); |
| 211 | } |
| 212 | |
| 213 | const IPAddress& SocketAddress::host() const { |
| 214 | return _pAddress->host(); |