MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / CheckMapping

Method CheckMapping

daemon/UPnP.cpp:158–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected