IBitsPeer::IsAvailable method (bits3_0.h)

Determines whether the peer is available (online) to serve content.

Syntax

HRESULT IsAvailable(
  [out] BOOL *pOnline
);

Parameters

[out] pOnline

TRUE if the peer is available to serve content, otherwise, FALSE.

Return value

The method returns the following return values.

Return code Description
S_OK
Success

Remarks

If this peer goes offline while BITS is downloading content from it, BITS immediately begins downloading from the origin server.

If the peer stays offline for an extended period of time, BITS removes the peer from the neighborhood.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header bits3_0.h (include Bits.h)
Library Bits.lib

See also

IBitsPeer