Edit

Share via


peerdist.h header

This header is used by Peer-to-Peer. For more information, see:

peerdist.h contains the following programming interfaces:

Functions

 
PeerDistClientAddContentInformation

PeerDistClientAddContentInformation function adds the content information associated with a content handle opened by PeerDistClientOpenContent.
PeerDistClientAddData

The PeerDistClientAddData function is used to supply content to the local cache.
PeerDistClientBlockRead

PeerDistClientBlockRead function reads content data blocks.
PeerDistClientCancelAsyncOperation

PeerDistClientCancelAsyncOperation function cancels asynchronous operation associated with an OVERLAPPED structure and the content handle returned by PeerDistClientOpenContent.
PeerDistClientCloseContent

PeerDistClientCloseContent function closes the content handle opened by PeerDistClientOpenContent.
PeerDistClientCompleteContentInformation

PeerDistClientCompleteContentInformation function completes the process of adding the content information.
PeerDistClientFlushContent

The PeerDistClientFlushContent function allows a client to remove content added to the local cache with the PeerDistClientAddData function using the associated PEERDIST_CONTENT_TAG.
PeerDistClientGetInformationByHandle

The PeerDistClientGetInformationByHandle function retrieves additional information from the Peer Distribution service for a specific content handle.
PeerDistClientOpenContent

PeerDistClientOpenContent function opens and returns a PEERDIST_CONTENT_HANDLE. The client uses the content handle to retrieve data from the Peer Distribution service.
PeerDistClientStreamRead

PeerDistClientStreamRead reads a sequence of bytes from content stream.
PeerDistGetOverlappedResult

The PeerDistGetOverlappedResult function retrieves the results of asynchronous operations.
PeerDistGetStatus

PeerDistGetStatus function returns the current status of the Peer Distribution service.
PeerDistGetStatusEx

PeerDistGetStatusEx function returns the current status and capabilities of the Peer Distribution service.
PeerDistRegisterForStatusChangeNotification

The PeerDistRegisterForStatusChangeNotification function requests the Peer Distribution service status change notification.
PeerDistRegisterForStatusChangeNotificationEx

The PeerDistRegisterForStatusChangeNotificationEx function requests the Peer Distribution service status change notification.
PeerDistServerCancelAsyncOperation

PeerDistServerCancelAsyncOperation function cancels the asynchronous operation associated with the content identifier and OVERLAPPED structure.
PeerDistServerCloseContentInformation

PeerDistServerCloseContentInformation function closes the handle opened by PeerDistServerOpenContentInformation.
PeerDistServerCloseStreamHandle

PeerDistServerCloseStreamHandle function closes a handle returned by PeerDistServerPublishStream.
PeerDistServerOpenContentInformation

PeerDistServerOpenContentInformation function opens a PEERDIST_CONTENTINFO_HANDLE. The client uses the handle to retrieve content information.
PeerDistServerOpenContentInformationEx

PeerDistServerOpenContentInformationEx function opens a PEERDIST_CONTENTINFO_HANDLE. The client uses the handle to retrieve content information.
PeerDistServerPublishAddToStream

PeerDistServerPublishAddToStream function adds data to the publishing stream.
PeerDistServerPublishCompleteStream

PeerDistServerPublishCompleteStream function completes the process of adding data to the stream.
PeerDistServerPublishStream

PeerDistServerPublishStream function initializes a new stream to be published to the Peer Distribution service.
PeerDistServerRetrieveContentInformation

PeerDistServerRetrieveContentInformation function retrieves the encoded content information associated with a handle returned by PeerDistServerOpenContentInformation.
PeerDistServerUnpublish

PeerDistServerUnpublish function removes a publication created via PeerDistServerPublishStream.
PeerDistShutdown

PeerDistShutdown function releases resources allocated by a call to PeerDistStartup. Each handle returned by a PeerDistStartup call must be closed by a matching call to PeerDistShutdown.
PeerDistStartup

PeerDistStartup function creates a new Peer Distribution instance handle which must be passed to all other Peer Distribution APIs.
PeerDistUnregisterForStatusChangeNotification

PeerDistUnregisterForStatusChangeNotification function unregisters the status change notification for the session associated with the specified handle.

Structures

 
PEERDIST_CLIENT_BASIC_INFO

The PEERDIST_CLIENT_BASIC_INFO structure indicates whether or not there are many clients simultaneously downloading the same content.
PEERDIST_CONTENT_TAG

PEERDIST_CONTENT_TAG structure contains a client supplied content tag as an input to the PeerDistClientOpenContent API.
PEERDIST_PUBLICATION_OPTIONS

PEERDIST_PUBLICATION_OPTIONS structure contains publication options, including the API version information and possible option flags.
PEERDIST_RETRIEVAL_OPTIONS

The PEER_RETRIEVAL_OPTIONS structure contains version of the content information to retrieve.
PEERDIST_STATUS_INFO

The PEERDIST_STATUS_INFO structure contains information about the current status and capabilities of the BranchCache service on the local computer.

Enumerations

 
PEERDIST_CLIENT_INFO_BY_HANDLE_CLASS

The PEERDIST_CLIENT_INFO_BY_HANDLE_CLASS enumeration defines the possible client information values.
PEERDIST_STATUS

PEERDIST_STATUS enumeration defines the possible status values of the Peer Distribution service.