diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/sockets.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sockets.h b/include/sockets.h index 0e490ac24..8b1abe5c2 100644 --- a/include/sockets.h +++ b/include/sockets.h @@ -79,6 +79,8 @@ union CoreExport sockaddrs * @throws A socket exception if given an invalid structure */ void ntop(int type, const void *src); + + bool valid() const; }; class CoreExport cidr @@ -91,6 +93,7 @@ class CoreExport cidr cidr(const Anope::string &ip, unsigned char len); Anope::string mask() const; bool match(const sockaddrs &other); + bool valid() const; bool operator<(const cidr &other) const; bool operator==(const cidr &other) const; |
