f9ecf455ba
simgear/io/HTTPClient.cxx Support range in HTTPRequest's. Set CURLOPT_MAX_RECV_SPEED_LARGE if request's getMaxBytesPerSec() is non-zero. simgear/io/HTTPFileRequest.cxx simgear/io/HTTPFileRequest.hxx Added 'bool append' to constructor args; if specified we assume that, if the output file already exists, it is from an interrupted download, and we use an http Range header to append any remaining data. Support a std::function callback when new data is available. Added setMaxBytesPerSec() to limit download bandwidth; useful for testing. simgear/io/HTTPRequest.cxx simgear/io/HTTPRequest.hxx Added support for setting Range header. In both simgear/io/HTTPClient.cxx and simgear/io/HTTPRequest.cxx, if a range is specified, we treat http results 206 'Partial Content' and 416 'Range Not Satisfiable' as success. |
||
---|---|---|
3rdparty | ||
CMakeModules | ||
simgear | ||
.gitignore | ||
AUTHORS | ||
ChangeLog | ||
CMakeLists.txt | ||
COPYING | ||
Doxyfile | ||
DoxygenMain.cxx | ||
INSTALL | ||
NEWS | ||
README | ||
README.cmake | ||
README.OSG | ||
README.sound | ||
README.zlib | ||
simgear-version | ||
SimGearConfig.cmake.in | ||
Thanks |
SimGear - Simulator Construction Tools ====================================== http://www.flightgear.org SimGear is a set of open-source libraries designed to be used as building blocks for quickly assembling 3d simulations, games, and visualization applications. SimGear is developed by the FlightGear project and also provides the base for the FlightGear Flight Simulator. Source code for SimGear is released under the GNU Library General Public License (LGPL) - see COPYING for license details. See INSTALL file for help on building SimGear.