Functions | |
int | UpnpGetIfInfo (std::string_view a_iface="") |
Retrieve local network adapter information and keep it in global variables. | |
int | UpnpRegisterRootDevice3 (const char *const DescUrl, const Upnp_FunPtr Fun, const void *const Cookie, UpnpDevice_Handle *const Hnd, const int AddressFamily, const char *const LowerDescUrl) |
Variables | |
pthread_mutex_t | sdkInit_mutex = PTHREAD_MUTEX_INITIALIZER |
Initialization mutex. | |
Handle_Info * | HandleTable [NUM_HANDLE] |
UPnP Device and Control Point handle table | |
int compa::anonymous_namespace{upnpapi.cpp}::UpnpGetIfInfo | ( | std::string_view | a_iface = "" | ) |
Retrieve local network adapter information and keep it in global variables.
If no or empty argument given, we'll find the best suitable local network adapter for operation. The IPv6 loopback address - as specified - is handled as link local unicast address.
The local network adapter must fulfill these requirements:
We'll retrieve the following information from the adapter:
[in] | a_iface | Adapter name or ip address. If no or empty argument ("") given, we'll find the best suitable local network adapter for operation. |
Definition at line 120 of file upnpapi.cpp.
int compa::anonymous_namespace{upnpapi.cpp}::UpnpRegisterRootDevice3 | ( | const char *const | DescUrl, |
const Upnp_FunPtr | Fun, | ||
const void *const | Cookie, | ||
UpnpDevice_Handle *const | Hnd, | ||
const int | AddressFamily, | ||
const char *const | LowerDescUrl | ||
) |
Definition at line 1168 of file upnpapi.cpp.
pthread_mutex_t compa::anonymous_namespace{upnpapi.cpp}::sdkInit_mutex = PTHREAD_MUTEX_INITIALIZER |
Initialization mutex.
Definition at line 89 of file upnpapi.cpp.
Handle_Info* compa::anonymous_namespace{upnpapi.cpp}::HandleTable[NUM_HANDLE] |
UPnP Device and Control Point handle table
Definition at line 92 of file upnpapi.cpp.