![]() |
BSHA3
0.17.99
P2P Blockchain, based on Bitcoin
|
#include <netaddress.h>
Public Member Functions | |
| CSubNet () | |
| CSubNet (const CNetAddr &addr, int32_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 |
| template<typename Stream , typename Operation > | |
| void | SerializationOp (Stream &s, Operation ser_action) |
Public Attributes | |
| ADD_SERIALIZE_METHODS | |
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 104 of file netaddress.h.
| CSubNet::CSubNet | ( | ) |
Definition at line 579 of file netaddress.cpp.
| CSubNet::CSubNet | ( | const CNetAddr & | addr, |
| int32_t | mask | ||
| ) |
|
explicit |
Definition at line 628 of file netaddress.cpp.
| bool CSubNet::IsValid | ( | ) | const |
| bool CSubNet::Match | ( | const CNetAddr & | addr | ) | const |
Definition at line 635 of file netaddress.cpp.
|
inline |
Definition at line 134 of file netaddress.h.
| std::string CSubNet::ToString | ( | ) | const |
Definition at line 661 of file netaddress.cpp.
Definition at line 128 of file netaddress.h.
Definition at line 709 of file netaddress.cpp.
Definition at line 704 of file netaddress.cpp.
| CSubNet::ADD_SERIALIZE_METHODS |
Definition at line 131 of file netaddress.h.
|
protected |
Netmask, in network byte order.
Definition at line 110 of file netaddress.h.
|
protected |
Network (base) address.
Definition at line 108 of file netaddress.h.
|
protected |
Is this value valid? (only used to signal parse errors)
Definition at line 112 of file netaddress.h.
1.8.14