Helper definition for all these IPv4/6 differences.
More...
#include <Network.h>
|
union { |
sockaddr | sa |
|
sockaddr_in | sa_in |
|
sockaddr_in6 | sa_in6 |
|
}; | |
|
Helper definition for all these IPv4/6 differences.
◆ SockAddrTy() [1/2]
XPMP2::SockAddrTy::SockAddrTy |
( |
| ) |
|
|
inline |
Constructor zeroes out everying.
◆ SockAddrTy() [2/2]
XPMP2::SockAddrTy::SockAddrTy |
( |
const sockaddr * |
pSa | ) |
|
Constructor copies given socket info.
◆ family()
uint8_t XPMP2::SockAddrTy::family |
( |
| ) |
const |
|
inline |
return the protocol famaily
◆ isIp4()
bool XPMP2::SockAddrTy::isIp4 |
( |
| ) |
const |
|
inline |
◆ isIp6()
bool XPMP2::SockAddrTy::isIp6 |
( |
| ) |
const |
|
inline |
◆ operator<()
bool XPMP2::SockAddrTy::operator< |
( |
const SockAddrTy & |
o | ) |
const |
|
inline |
Comparison bases solely on memory compare, order isn't important, just that there is order.
◆ operator==()
bool XPMP2::SockAddrTy::operator== |
( |
const SockAddrTy & |
o | ) |
const |
|
inline |
Comparison bases solely on memory compare, order isn't important, just that there is order.
◆ port()
uint16_t XPMP2::SockAddrTy::port |
( |
| ) |
const |
|
inline |
◆ setPort()
void XPMP2::SockAddrTy::setPort |
( |
uint16_t |
port | ) |
|
|
inline |
◆ size()
socklen_t XPMP2::SockAddrTy::size |
( |
| ) |
const |
|
inline |
< expected structure size as per protocol family
The documentation for this struct was generated from the following files: