diff options
author | dec05eba <0xdec05eba@gmail.com> | 2018-10-14 03:36:47 +0200 |
---|---|---|
committer | dec05eba <0xdec05eba@gmail.com> | 2018-10-14 03:36:51 +0200 |
commit | 8ce21af2486b2da3273d554ffdf058cb07f49a8f (patch) | |
tree | c4e4425e78cb5c9c300e9b2281b1b1818c80a3dd /src/IpAddress.cpp | |
parent | a5b3db69c366866398aaa30053f5b83e8e7e491a (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(); + } } |