diff options
| author | 2008-08-15 15:08:36 +0000 | |
|---|---|---|
| committer | 2008-08-15 15:08:36 +0000 | |
| commit | f8bb192fe871e43df35cf8e5f73a1fb1a13720b5 (patch) | |
| tree | 90f8bd92029afa305607442f6276045d5da212f2 | |
| parent | even more fixes to upnp module (added refresh command, forced it not to unloa... (diff) | |
| download | KVIrc-f8bb192fe871e43df35cf8e5f73a1fb1a13720b5.tar.gz KVIrc-f8bb192fe871e43df35cf8e5f73a1fb1a13720b5.tar.bz2 KVIrc-f8bb192fe871e43df35cf8e5f73a1fb1a13720b5.zip | |
fixes to upnp/portmapping and to CMakeList.txt
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2253 17fca916-40b9-46aa-a4ea-0a15b648b75c
| -rw-r--r-- | CMakeLists.txt | 1 | ||||
| -rw-r--r-- | src/modules/upnp/wanconnectionservice.cpp | 10 |
2 files changed, 10 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d89bdbdcc..77f933217 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -501,6 +501,7 @@ ENDIF() # NETWORK FUNCTIONS support ############################################################################ +INCLUDE(CheckFunctionExists) CHECK_FUNCTION_EXISTS("inet_ntoa" HAVE_INET_NTOA) # what systems lacks this!? IF(HAVE_INET_NTOA) diff --git a/src/modules/upnp/wanconnectionservice.cpp b/src/modules/upnp/wanconnectionservice.cpp index 6d46e6d4b..7641f97f0 100644 --- a/src/modules/upnp/wanconnectionservice.cpp +++ b/src/modules/upnp/wanconnectionservice.cpp @@ -130,7 +130,7 @@ void WanConnectionService::gotActionResponse(const QString &responseType, const qDebug() << "UPnP::WanConnectionService: natEnabled=" << m_bNatEnabled << "." << endl; } - else if(responseType == "GetGenericPortMappingEntryResponse" || responseType == "AddPortMappingResponse") + else if(responseType == "GetGenericPortMappingEntryResponse") { // Find a place to store the data PortMapping *map = new PortMapping; @@ -152,6 +152,14 @@ void WanConnectionService::gotActionResponse(const QString &responseType, const << " to " << map->internalClient << ":" << map->internalPort << " max " << map->leaseDuration << "s '" << map->description << "' " << (map->enabled ? "enabled" : "disabled") << endl; } + else if(responseType == "AddPortMappingResponse") + { + qDebug() << "UPnP::WanConnectionService - Got mapping enabled" << endl; + } + else if(responseType == "DeletePortMappingResponse") + { + qDebug() << "UPnP::WanConnectionService - Got mapping disabled" << endl; + } else { qDebug() << "UPnP::WanConnectionService - Unexpected response type" |
