QNetworkAccessManager in/out data counter
General and Desktop
6
Posts
3
Posters
2.9k
Views
1
Watching
-
You could do this using a QNAM proxy possibly coupled with a custom QNetworkReply. Take a look at this "blog entry":http://blogs.kde.org/node/4210 and the next couple by Rich Moore to get an idea of how you can customise QNAM and friends.
-
The problem is that you have little or no control about how many bytes are actually transmitted "on the wire", considering f.i. gzip compression, chunked encoding, encryption, proxies, etc.
If you're willing to patch Qt of course you have complete control on the underlying sockets, so you can get some counters from them.