| 156 | } |
| 157 | |
| 158 | int UPnP::CheckMapping (const char* port, const char* type) |
| 159 | { |
| 160 | int err = UPNPCOMMAND_SUCCESS; |
| 161 | |
| 162 | #if (MINIUPNPC_API_VERSION >= 10) |
| 163 | err = UPNP_GetSpecificPortMappingEntry(m_upnpUrls.controlURL, m_upnpData.first.servicetype, port, type, NULL, NULL, NULL, NULL, NULL, NULL); |
| 164 | #elif ((MINIUPNPC_API_VERSION >= 8) || defined (UPNPDISCOVER_SUCCESS)) |
| 165 | err = UPNP_GetSpecificPortMappingEntry(m_upnpUrls.controlURL, m_upnpData.first.servicetype, port, type, NULL, NULL, NULL, NULL, NULL); |
| 166 | #else |
| 167 | err = UPNP_GetSpecificPortMappingEntry(m_upnpUrls.controlURL, m_upnpData.first.servicetype, port, type, NULL, NULL); |
| 168 | #endif |
| 169 | return err; |
| 170 | } |
| 171 | |
| 172 | void UPnP::PortMapping () |
| 173 | { |
nothing calls this directly
no outgoing calls
no test coverage detected