C# (CSharp) Microsoft.Protocols.TestSuites.Pchc Namespace

Classes

Name Description
ClientHelper The helper is used to exchange the data struct in adapter and stack.
ConnectionInformation All Peer Content Caching and Retrieval: Hosted Cache Protocol request messages use a common connection information structure, which describes the information needed by the hosted cache to use the Peer Content Caching and Retrieval: Retrieval Protocol [MS-PCCRR] as a client-role peer, to download needed blocks from the client as a server-role peer.
HttpUnauthenticationException
InitialOfferMessage An INITIAL_OFFER_MESSAGE is the first message a client sends to the hosted cache. The INITIAL_OFFER_MESSAGE is a request message that notifies the hosted cache of new content available on the client.
Logger This class implements all methods of ILogger.
MessageHeader All Peer Content Caching and Retrieval: Hosted Cache Protocol [MS-PCHC] request messages use a common header, which consists of the following fields.
NoInitialOfferMessageException
NoResponseMessageException
NoSegmentInfoMessageException
PchcBothRoleCaptureCode Verify the both client and server role requirements of MS-PCHC.
PchcClientAdapter PCHC adapter implementation to test client behaviors.
PchcServerAdapter Verify the server role requirements of MS-PCHC.
ResponseMessage Response message
SegmentContentBlocks The blocks field contains a number cSegments of SegmentContentBlocks fields. The Nth SegmentContentBlocks field corresponds to the Nth SegmentDescription and hence the Nth content segment. The SegmentContentBlocks field is formatted as follows.
SegmentDescription The segments field is composed of a number cSegments of SegmentDescription fields. Each SegmentDescription field corresponds to a content segment in the order in which they appear in the original content. Every segment except for the last segment must be exactly 32 MB in size. The content information data structure defines the content range as described below. Content range = {Start offset, Length}Start offset = ullOffsetInContent + dwOffsetInFirstSegment, where ullOffsetInContent is taken from the first SegmentDescription in the segments field.Length =( Sum of cbSegment of all segments in segments field except for the first segment and last segment) + (cbSegment of first segment – dwOffsetInFirstSegment) + dwReadBytesInLastSegmentThe content range extends to the end of all the segments whose SegmentDescriptions are included in the Content Information except for the last segment, for which the number of bytes is limited to dwReadBytesInLastSegment instead of the total number of bytes actually present in the segment.
SegmentInfoMessage A SEGMENT_INFO_MESSAGE is a request message sent by the client to the hosted cache containing the segment hash of data (HoD) for the previously offered segment, as well as the range of block hashes in the segment. Whether a SEGMENT_INFO_MESSAGE is sent depends on the hosted cache's response to the previous INITIAL_OFFER_MESSAGE containing the same HoHoDk.
SegmentInformation Content Information is a variable size data structure. Content Information size is proportional to the length of the content it represents.Content Information starts with a single 2 byte WORD value representing the data structure version. Version 1.0 of the Content Information data structure is formatted as follows. All fields are in host byte order.
ServerHelper The Helper to convert type between adapter and stack
TransportHeader The transport adds the following header in front of any response protocol message.