Show / Hide Table of Contents

Interface IBitswapProtocol

Features of a bitswap protocol.

Inherited Members
IPeerProtocol.ProcessMessageAsync(PeerConnection, Stream, CancellationToken)
IPeerProtocol.Name
IPeerProtocol.Version
Namespace: Ipfs.Engine.BlockExchange
Assembly: Ipfs.Engine.dll
Syntax
public interface IBitswapProtocol : IPeerProtocol

Methods

| Improve this Doc View Source

SendWantsAsync(Stream, IEnumerable<WantedBlock>, Boolean, CancellationToken)

Send a want list.

Declaration
Task SendWantsAsync(Stream stream, IEnumerable<WantedBlock> wants, bool full = true, CancellationToken cancel = default(CancellationToken))
Parameters
Type Name Description
Stream stream

The destination of the want list.

IEnumerable<WantedBlock> wants

A sequence of WantedBlock.

Boolean full

true if wants is the full want list.

CancellationToken cancel

Is used to stop the task. When cancelled, the TaskCanceledException is raised.

Returns
Type Description
Task

A task that represents the asynchronous operation.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX