|
XPMP2
X-Plane multiplayer library 2 - using instancing
|
Stores information about local interface addresses. More...
Public Member Functions | |
| LocalIntfAddrTy () | |
| Standard constructor keeps all empty/invalid. More... | |
| LocalIntfAddrTy (const char *_intfName, const sockaddr *sa, uint32_t _flags) | |
| Constructor looks up interface idx from its name. More... | |
| LocalIntfAddrTy (const char *_intfName, uint32_t _idx, const sockaddr *sa, uint32_t _flags) | |
| Constructor expects both interface name and index. More... | |
| bool | operator== (const LocalIntfAddrTy &o) const |
| equality is by interface and address More... | |
| bool | operator< (const LocalIntfAddrTy &o) const |
| sorting order is by intf idx, then address; this guarantees that while traversing we see all addresses of one interface together More... | |
| bool | operator== (const InetAddrTy &ia) const |
| just compare the address More... | |
Public Attributes | |
| uint32_t | intfIdx = 0 |
| interface index More... | |
| std::string | intfName |
| interface name More... | |
| InetAddrTy | addr |
| address, internally this is in_addr or in6_addr More... | |
| uint8_t | family = 0 |
either AF_INET or AF_INET6 More... | |
| uint32_t | flags = 0 |
stuff like IFF_MULTICAST, IFF_LOOPBACK, IFF_BROADCAST... More... | |
Stores information about local interface addresses.
|
inline |
Standard constructor keeps all empty/invalid.
|
inline |
Constructor looks up interface idx from its name.
|
inline |
Constructor expects both interface name and index.
|
inline |
sorting order is by intf idx, then address; this guarantees that while traversing we see all addresses of one interface together
|
inline |
just compare the address
|
inline |
equality is by interface and address
| InetAddrTy XPMP2::LocalIntfAddrTy::addr |
address, internally this is in_addr or in6_addr
| uint8_t XPMP2::LocalIntfAddrTy::family = 0 |
either AF_INET or AF_INET6
| uint32_t XPMP2::LocalIntfAddrTy::flags = 0 |
stuff like IFF_MULTICAST, IFF_LOOPBACK, IFF_BROADCAST...
| uint32_t XPMP2::LocalIntfAddrTy::intfIdx = 0 |
interface index
| std::string XPMP2::LocalIntfAddrTy::intfName |
interface name