|
XPMP2
X-Plane multiplayer library 2 - using instancing
|
Numerical IP address, used for both ipv4 and ipv6, for ease of handling. More...
#include <Network.h>
Public Member Functions | |
| InetAddrTy () | |
| Default does nothing. | |
| InetAddrTy (const SockAddrTy &sa) | |
| Take over from structure. | |
| InetAddrTy (const sockaddr *pSa) | |
| Take over from structure. | |
| void | CopyFrom (const SockAddrTy &sa) |
| Take over address from structure. | |
| bool | operator== (const InetAddrTy &o) const |
| Equality means: all elements are equal. | |
| bool | operator< (const InetAddrTy &o) const |
| Comparison also uses memcmp for defined order. | |
Public Attributes | ||
| union { | ||
| std::uint32_t | addr [4] = {0,0,0,0} | |
| struct in_addr | in_addr | |
| struct in6_addr | in6_addr | |
| }; | ||
Numerical IP address, used for both ipv4 and ipv6, for ease of handling.
|
inline |
Default does nothing.
|
inline |
Take over from structure.
|
inline |
Take over from structure.
| void XPMP2::InetAddrTy::CopyFrom | ( | const SockAddrTy & | sa | ) |
Take over address from structure.
Extracts the numerical address and puts it into addr for generic address use.
|
inline |
Comparison also uses memcmp for defined order.
|
inline |
Equality means: all elements are equal.
| union { ... } XPMP2::InetAddrTy |