A simple network manager built on top of the QtNetworkAccessManager framework. It can handle any number of simultaneous network requests. It is efficient because the network manager calls the requesting object's reply received slot directly without significant overhead in deciding which requesting object the reply belongs to. The user is encouraged to build on top of the functionality provided.
This efficiency is accomplished by embedding into the reply a unique identifier (ID). Every requesting object has a unique key. The network manager uses this ID as a key into a STL map to obtain a pointer to the requesting object's reply handling slot. The reply handler can then be called directly. The ID is nothing more than a random number supplied to the requesting object when the requesting object registers it's own pointer with the network manager.
The network manager (netmngr.cc/h) is the heart of the implementation. However, a complete example application called wxweb is provided.
Features
- Can be incorporated in applications needing web access.
- Efficient
- Compiles and runs under Qt4 or Qt5.
- Bypasses signal/slot Qt methodology