neo::network::HTTPPackageProtocol Class Reference

#include <network/http.h>

Inheritance diagram for neo::network::HTTPPackageProtocol:

Inheritance graph
[legend]
Collaboration diagram for neo::network::HTTPPackageProtocol:

Collaboration graph
[legend]
List of all members.

Detailed Description

HTTP package protocol
Author:
Mattias Jansson (mattias@realityrift.com)


Public Member Functions

 HTTPPackageProtocol ()
 Initialize.
virtual ~HTTPPackageProtocol ()
 Free resources.
virtual file::IStreamgetPackage (const std::string &path, std::string &timestamp, int &size)
 Get package stream.


Member Function Documentation

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.

Parameters:
path Package path
timestamp Timestamp
size Size of package
Returns:
Package stream

Implements neo::file::PackageNetworkProtocol.


The documentation for this class was generated from the following file:
Generated on Sat Feb 17 20:51:06 2007 for NeoEngine 2 - Evolution by  doxygen 1.5.1