-
- Downloads
upnp: support libupnp and libnatnatpmp simultaneously
Update libupnp to version 1.8.4. For windows, the IPV6 preprocessor must be undefined. Or else libupnp won't initialize. Added visual studio 2017 support via one patch for windows that also combines previous windows patches. UPnPController: Class that the jami classes use to control the opening and closing of ports. Every service has it's own upnp controller. The controller does it's actions by using the upnp context class. Also refactored the functions used to add mappings. Instead of using two different functions with different types of parameters, we now use one function with parameters that have default values. The logic stays the same but the function call is more clear. UPnPContext: Class that holds a (linked) list of discovered IGDs and their corresponding protocols (which discovered them). Whenever the controller wants to add or remove a mapping, the context picks a valid IGD in it's list and uses the correct protocol to complete the required action. This class also has the ability to swap protocols for an IGD that was discovered by more then one protocol. UPnPProtocol: Virtual base class that defines the functions needed by the context to use the corresponding protocol. PUPnP: UPnPProtocol derived class that represents a upnp client that uses the portable upnp library (libupnp). Every time the client discovers a new IGD it uses a callback to add it to the context's main IGD linked list. It also has an internal list of IGDs that it discovered. Added features to this class include: - IGD event subscription. - Use UpnpInit2 function instead of deprecated UpnpInit function. It's also supposed to support IPv6. NatPmp: UPnPProtocol derived class that represents a upnp client that uses the NAT-PMP library (libnatpmp). Unlike libupnp, libnatpmp only supports discovering one IGD. Also uses callbacks to add the IGD it finds to the context's main IGD class. Also inclided debug warning prints whenever a controller opens and closes the ports. That way we can keep track of whenever the application opens and closes ports on the internet gateway device. Gitlab: #96 Change-Id: I199271edac2c6d93dc60c24e2e2aefe36de7950c
Showing
- MSVC/ring-daemon.vcxproj 25 additions, 17 deletionsMSVC/ring-daemon.vcxproj
- MSVC/ring-daemon.vcxproj.filters 52 additions, 28 deletionsMSVC/ring-daemon.vcxproj.filters
- configure.ac 5 additions, 0 deletionsconfigure.ac
- contrib/build_all.bat 4 additions, 6 deletionscontrib/build_all.bat
- contrib/src/upnp/SHA512SUMS 1 addition, 1 deletioncontrib/src/upnp/SHA512SUMS
- contrib/src/upnp/fetch_and_patch.bat 4 additions, 5 deletionscontrib/src/upnp/fetch_and_patch.bat
- contrib/src/upnp/libupnp-ipv6.patch 4 additions, 4 deletionscontrib/src/upnp/libupnp-ipv6.patch
- contrib/src/upnp/libupnp-vs2017.patch 0 additions, 904 deletionscontrib/src/upnp/libupnp-vs2017.patch
- contrib/src/upnp/libupnp-win32.patch 0 additions, 68 deletionscontrib/src/upnp/libupnp-win32.patch
- contrib/src/upnp/libupnp-win64.patch 0 additions, 41 deletionscontrib/src/upnp/libupnp-win64.patch
- contrib/src/upnp/libupnp-windows.patch 3157 additions, 376 deletionscontrib/src/upnp/libupnp-windows.patch
- contrib/src/upnp/miniserver.patch 19 additions, 5 deletionscontrib/src/upnp/miniserver.patch
- contrib/src/upnp/rules.mak 6 additions, 12 deletionscontrib/src/upnp/rules.mak
- contrib/src/upnp/threadpool.patch 27 additions, 22 deletionscontrib/src/upnp/threadpool.patch
- contrib/src/upnp/uuid_upnp.patch 0 additions, 124 deletionscontrib/src/upnp/uuid_upnp.patch
- src/account.cpp 2 additions, 2 deletionssrc/account.cpp
- src/account.h 1 addition, 1 deletionsrc/account.h
- src/ice_transport.cpp 3 additions, 3 deletionssrc/ice_transport.cpp
- src/jamidht/jamiaccount.cpp 2 additions, 2 deletionssrc/jamidht/jamiaccount.cpp
- src/sip/sipaccount.cpp 3 additions, 3 deletionssrc/sip/sipaccount.cpp
Loading
Please register or sign in to comment