summaryrefslogtreecommitdiff
path: root/include/sockets.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sockets.h')
-rw-r--r--include/sockets.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sockets.h b/include/sockets.h
index 7074522e0..6fa6c4075 100644
--- a/include/sockets.h
+++ b/include/sockets.h
@@ -90,7 +90,15 @@ class CoreExport cidr
cidr(const Anope::string &ip, unsigned char len);
Anope::string mask() const;
bool match(sockaddrs &other);
+
bool operator<(const cidr &other) const;
+ bool operator==(const cidr &other) const;
+ bool operator!=(const cidr &other) const;
+
+ struct hash
+ {
+ size_t operator()(const cidr &s) const;
+ };
};
class SocketException : public CoreException