|
std::string | XPMP2::_NetwGetIntfName (uint32_t idx, uint8_t family) |
| Get an interface's name. More...
|
|
LocalIntfAddrTy | XPMP2::_NetwFindLocalIntf (const std::string &intf, uint8_t family) |
| Find a matching local interface based on name and family. More...
|
|
void | XPMP2::_NetwGetLocalAddresses (bool bForceRefresh=false) |
| Fetch all local addresses and cache locally. More...
|
|
uint32_t | XPMP2::_GetIntfNext (const uint32_t prevIdx, SetLocalIntfAddrTy::const_iterator &i, uint8_t family, uint32_t fMust, uint32_t fSkip) |
| Internal: Returns the next interface index of a broadcast interface for the given protocol family. More...
|
|
uint32_t | XPMP2::GetIntfFirst (SetLocalIntfAddrTy::const_iterator &i, uint8_t family, uint32_t fMust, uint32_t fSkip=0) |
| Returns the first interface index of a broadcast interface for the given protocol family. More...
|
|
uint32_t | XPMP2::GetIntfNext (SetLocalIntfAddrTy::const_iterator &i, uint8_t family, uint32_t fMust, uint32_t fSkip=0) |
| Returns the next interface index of a broadcast interface for the given protocol family. More...
|
|
std::vector< std::string > | XPMP2::NetwGetInterfaces (uint8_t family, uint32_t fMust=0, uint32_t fSkip=0) |
| Return list of known local interfaces. More...
|
|
std::string | XPMP2::NetwGetInterfaceNames (uint8_t family, uint32_t fMust=0, uint32_t fSkip=0) |
| Return comma-separated string will all known local interfaces, calls NetwGetInterfaces() More...
|
|
bool | XPMP2::NetwIsLocalAddr (const InetAddrTy &addr) |
| Is given address a local one? More...
|
|
Low-level network communications, especially for TCP/UDP.
- See also
- Some inital ideas and pieces of code take from https://linux.m2osw.com/c-implementation-udp-clientserver
XPMP2::SocketNetworking: Any network socket connection
XPMP2::UDPReceiver: listens to and receives UDP datagram
XPMP2::UDPMulticast: sends and receives multicast UDP datagrams
XPMP2::TCPConnection: receives incoming TCP connection
- Author
- Birger Hoppe
- Copyright
- (c) 2019-2024 Birger Hoppe
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.