c++ - Download progress using SFML's HTTP class? -


so i'm wondering way of getting progress of download when using sfml's http class / using http in general. way i've thought of being able using tons of ranged requests in separate thread, ofc makes download take longer requests , all.

any ideas?

you can't. if want progress information, should either implement (not recommended) or use library networking.

from documentation of sf::http::sendrequest:

warning: function waits server's response , may not return instantly; use thread if don't want block application, or use timeout limit time wait.

in other words, it's blocking method return on timeout or completion (success or error).

maybe have @ libcurl, cpp-netlib or maybe other libraries.


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -