diff options
author | Determinant <ted.sybil@gmail.com> | 2018-07-06 18:46:59 -0400 |
---|---|---|
committer | Determinant <ted.sybil@gmail.com> | 2018-07-06 18:46:59 -0400 |
commit | f3976e3c06ef57671e823953a8cc27c30547da6d (patch) | |
tree | aa9c8a1f9a52ccebb22ab89d8610273dd5a53e61 /include/salticidae/netaddr.h | |
parent | fb6c58e08102200b9f23e7b940130defed4ce5ea (diff) |
...
Diffstat (limited to 'include/salticidae/netaddr.h')
-rw-r--r-- | include/salticidae/netaddr.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/salticidae/netaddr.h b/include/salticidae/netaddr.h index 1b53dff..eabb5da 100644 --- a/include/salticidae/netaddr.h +++ b/include/salticidae/netaddr.h @@ -84,7 +84,11 @@ struct NetAddr { bool operator==(const NetAddr &other) const { return ip == other.ip && port == other.port; } - + + bool operator!=(const NetAddr &other) const { + return ip != other.ip || port != other.port; + } + operator std::string() const { struct in_addr in; in.s_addr = ip; |