WMS_CACHE_QUERY_RESPONSE
Previous | Next |
WMS_CACHE_QUERY_RESPONSE
The WMS_CACHE_QUERY_RESPONSE enumeration type indicates what action the server must take if a cache hit occurs.
Syntax
typedef enum WMS_CACHE_QUERY_RESPONSE{ WMS_CACHE_QUERY_HIT_PLAY_ON_DEMAND = 0, WMS_CACHE_QUERY_HIT_PLAY_BROADCAST = 1, WMS_CACHE_QUERY_HIT_PROCESS_REQUEST = 2, WMS_CACHE_QUERY_MISS = 3 };
Members
WMS_CACHE_QUERY_HIT_PLAY_ON_DEMAND
The requested content was found in cache storage and has not expired. The content can be sent to a client from the cache or proxied from an upstream server. There is one connection for each client.
WMS_CACHE_QUERY_HIT_PLAY_BROADCAST
The requested content is already being proxied as a shared broadcast. The proxied stream must be split to multiple downstream clients if it has not been authenticated and has been marked by the origin server as splittable.
WMS_CACHE_QUERY_HIT_PROCESS_REQUEST
If the client has requested information about cached content, the local server must return a pointer to a valid IWMSContext interface that contains a cache context. For more information, see Contexts.
If the client has propagated an event notice to the local server, that event must be handled by the local server.
This response applies only to requests for content information and remote events. That is, it can be used to respond only when the server calls the QueryCache method on the IWMSCacheProxy interface with the QueryType parameter equal to either WMS_CACHE_QUERY_GET_CONTENT_INFO or WMS_CACHE_QUERY_CACHE_EVENT.
WMS_CACHE_QUERY_MISS
The requested content was not found in cache storage, or it was found but has expired.
Remarks
This enumeration is used when a cache plug-in calls the OnQueryCache method on the IWMSCacheProxyCallback interface.
Requirements
Header: streamcache.h.
Library: WMSServerTypeLib.dll.
Platform: Windows Server 2003 family, Windows Server 2008 family.
See Also (General)
See Also (Visual Basic .NET)
- IWMSCacheProxy.QueryCache (Visual Basic .NET)
- IWMSCacheProxyCallback.OnQueryCache (Visual Basic .NET)
- IWMSContext Object (Visual Basic .NET)
See Also (C#)
See Also (C++)
Previous | Next |