![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
#include "compat.h"#include "serialize.h"#include "span.h"#include "prevector.h"#include "tinyformat.h"#include "utilstrencodings.h"#include "util/string.h"#include <array>#include <cstdint>#include <ios>#include <string>#include <vector>Go to the source code of this file.
Classes | |
| class | CNetAddr |
| Network address. More... | |
| class | CSubNet |
| class | CService |
| A combination of a network address (CNetAddr) and a (TCP) port. More... | |
Enumerations | |
| enum | Network { NET_UNROUTABLE = 0 , NET_IPV4 , NET_IPV6 , NET_ONION , NET_I2P , NET_CJDNS , NET_INTERNAL , NET_MAX } |
| A network type. More... | |
| enum Network |
A network type.
10.0.0.1 belongs to both NET_UNROUTABLE and NET_IPV4. Keep these sequential starting from 0 and NET_MAX as the last entry. We have loops like for (int i = 0; i < NET_MAX; i++) that expect to iterate over all enum values and also GetExtNetwork() "extends" this enum by introducing standalone constants starting from NET_MAX. | Enumerator | |
|---|---|
| NET_UNROUTABLE | Addresses from these networks are not publicly routable on the global Internet. |
| NET_IPV4 | IPv4. |
| NET_IPV6 | IPv6. |
| NET_ONION | TOR (v2 or v3) |
| NET_I2P | I2P. |
| NET_CJDNS | CJDNS. |
| NET_INTERNAL | A set of addresses that represent the hash of a string or FQDN. We use them in CAddrMan to keep track of which DNS seeds were used. |
| NET_MAX | Dummy value to indicate the number of NET_* constants. |
Definition at line 43 of file netaddress.h.