Functions | |
| int | UpnpGetIfInfo (const std::string &a_iface="") |
| Retrieve local network adapter information and keep it in global variables. | |
| int | GetFreeHandle () |
| Get a free UPnP Unit handle. | |
| int | FreeHandle (int Upnp_Handle) |
| Free handle. | |
Variables | |
| Handle_Info * | HandleTable [NUM_HANDLE] |
| UPnP Device and Control Point handle table | |
| int anonymous_namespace{upnpapi.cpp}::UpnpGetIfInfo | ( | const std::string & | a_iface = "" | ) |
Retrieve local network adapter information and keep it in global variables.
If no or empty argument given, the operating system should find the best suitable local network adapter for operation as specified by RFC3484 - Default Address Selection. The IPv6 loopback address - as specified - is handled as link local unicast address. Always only one local IP address is selected.
The local network adapter must fulfill these requirements:
We'll retrieve the following information from the adapter:
| [in] | a_iface | Adapter name, netaddress, or netadapter index. If no or empty argument ("") given, we'll find the best suitable local network adapter for operation. |
Definition at line 257 of file upnpapi.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| int anonymous_namespace{upnpapi.cpp}::GetFreeHandle | ( | ) |
Get a free UPnP Unit handle.
Definition at line 376 of file upnpapi.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| int anonymous_namespace{upnpapi.cpp}::FreeHandle | ( | int | Upnp_Handle | ) |
Free handle.
| [in] | Upnp_Handle | Handle index. |
Definition at line 397 of file upnpapi.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| Handle_Info* anonymous_namespace{upnpapi.cpp}::HandleTable[NUM_HANDLE] |
UPnP Device and Control Point handle table
Definition at line 365 of file upnpapi.cpp.