Show / Hide Table of Contents

Class Bitswap11

Bitswap Protocol version 1.1.0

Inheritance
Object
Bitswap11
Implements
IBitswapProtocol
IPeerProtocol
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Namespace: Ipfs.Engine.BlockExchange
Assembly: Ipfs.Engine.dll
Syntax
public class Bitswap11 : IBitswapProtocol, IPeerProtocol

Properties

| Improve this Doc View Source

Bitswap

The Bitswap service.

Declaration
public Bitswap Bitswap { get; set; }
Property Value
Type Description
Bitswap
| Improve this Doc View Source

Name

Declaration
public string Name { get; }
Property Value
Type Description
String
| Improve this Doc View Source

Version

Declaration
public SemVersion Version { get; }
Property Value
Type Description
Semver.SemVersion

Methods

| Improve this Doc View Source

ProcessMessageAsync(PeerConnection, Stream, CancellationToken)

Declaration
public Task ProcessMessageAsync(PeerConnection connection, Stream stream, CancellationToken cancel = default(CancellationToken))
Parameters
Type Name Description
PeerConnection connection
Stream stream
CancellationToken cancel
Returns
Type Description
Task
| Improve this Doc View Source

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

Send a want list.

Declaration
public 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

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()

Implements

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