#include <network/http.h>
Inheritance diagram for neo::network::HTTPPackageProtocol:


Public Member Functions | |
| HTTPPackageProtocol () | |
| Initialize. | |
| virtual | ~HTTPPackageProtocol () |
| Free resources. | |
| virtual file::IStream * | getPackage (const std::string &path, std::string ×tamp, int &size) |
| Get package stream. | |
| virtual file::IStream* neo::network::HTTPPackageProtocol::getPackage | ( | const std::string & | path, | |
| std::string & | timestamp, | |||
| int & | size | |||
| ) | [virtual] |
Get the package from the networked resource unless timestamp check determines the package has not been updated since last caching. If timestamp is empty, the package stream will always be opened. If the package stream is opened, the timestamp will after the method returns contain the new timestamp for the package and the size parameter will contain the size of the package data.
| path | Package path | |
| timestamp | Timestamp | |
| size | Size of package |
Implements neo::file::PackageNetworkProtocol.
1.5.1