diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-10-14 03:36:47 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 22:56:48 +0200 |
commit | fdbcee4063db89a8ba49cc5c2367376884f4b9d4 (patch) | |
tree | f1255d7066bf223601e81d8f18f0c2d541eddaee /src/IpAddress.cpp | |
parent | 10b5eab3e2ba705b73ce3d8b7d8c623ba09bfc82 (diff) |
Another test
Diffstat (limited to 'src/IpAddress.cpp')
-rw-r--r-- | src/IpAddress.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/IpAddress.cpp b/src/IpAddress.cpp index 38f758d..c90c924 100644 --- a/src/IpAddress.cpp +++ b/src/IpAddress.cpp @@ -53,4 +53,9 @@ namespace sibs { return ntohs(address.sin_port); } + + bool Ipv4::operator == (const Ipv4 &other) const + { + return address.sin_addr.s_addr == other.address.sin_addr.s_addr && getPort() == other.getPort(); + } } |