![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
#include <netaddress.h>
Public Member Functions | |
| CSubNet () | |
| CSubNet (const CNetAddr &addr, uint8_t mask) | |
| CSubNet (const CNetAddr &addr, const CNetAddr &mask) | |
| CSubNet (const CNetAddr &addr) | |
| bool | Match (const CNetAddr &addr) const |
| std::string | ToString () const |
| bool | IsValid () const |
| SERIALIZE_METHODS (CSubNet, obj) | |
Protected Attributes | |
| CNetAddr | network |
| Network (base) address. More... | |
| uint8_t | netmask [16] |
| Netmask, in network byte order. More... | |
| bool | valid |
| Is this value valid? (only used to signal parse errors) More... | |
Friends | |
| bool | operator== (const CSubNet &a, const CSubNet &b) |
| bool | operator!= (const CSubNet &a, const CSubNet &b) |
| bool | operator< (const CSubNet &a, const CSubNet &b) |
Definition at line 452 of file netaddress.h.
| CSubNet::CSubNet | ( | ) |
Definition at line 959 of file netaddress.cpp.
| CSubNet::CSubNet | ( | const CNetAddr & | addr, |
| uint8_t | mask | ||
| ) |
|
explicit |
| bool CSubNet::IsValid | ( | ) | const |
| bool CSubNet::Match | ( | const CNetAddr & | addr | ) | const |
Definition at line 1051 of file netaddress.cpp.
|
inline |
Definition at line 479 of file netaddress.h.
| std::string CSubNet::ToString | ( | ) | const |
Definition at line 1064 of file netaddress.cpp.
Definition at line 1090 of file netaddress.cpp.
Definition at line 1095 of file netaddress.cpp.
Definition at line 1085 of file netaddress.cpp.
|
protected |
Netmask, in network byte order.
Definition at line 458 of file netaddress.h.
|
protected |
Network (base) address.
Definition at line 456 of file netaddress.h.
|
protected |
Is this value valid? (only used to signal parse errors)
Definition at line 460 of file netaddress.h.