C# Класс Ipfs.Commands.IpfsDiag

Наследование: Ipfs.Json.IpfsCommand
Показать файл Открыть проект

Открытые методы

Метод Описание
Net ( string timeout = null, IpfsVis vis = null ) : Task

Generates a network diagnostics report Sends out a message to each node in the network recursively requesting a listing of data about them including number of connected peers and latencies between them. The given timeout will be decremented 2s at every network hop, ensuring peers try to return their diagnostics before the initiator's timeout.If the timeout is too small, some peers may not be reached. 30s and 60s are reasonable timeout values, though network vary. The default timeout is 20 seconds. The 'vis' option may be used to change the output format. four formats are supported: * plain text - easy to read * d3 - json ready to be fed into d3view * dot - graphviz format The d3 format will output a json object ready to be consumed by the chord network viewer, available at the following hash: /ipfs/QmbesKpGyQGd5jtJFUGEB1ByPjNFpukhnKZDnkfxUiKn38 To view your diag output, 'ipfs add' the d3 vis output, and open the following link: https//ipfs.io/ipfs/QmbesKpGyQGd5jtJFUGEB1ByPjNFpukhnKZDnkfxUiKn38/chord# The dot format can be fed into graphviz and other programs that consume the dot format to generate graphs of the network.

Приватные методы

Метод Описание
IpfsDiag ( Uri commandUri, HttpClient httpClient, IJsonSerializer jsonSerializer ) : System

Описание методов

Net() публичный Метод

Generates a network diagnostics report Sends out a message to each node in the network recursively requesting a listing of data about them including number of connected peers and latencies between them. The given timeout will be decremented 2s at every network hop, ensuring peers try to return their diagnostics before the initiator's timeout.If the timeout is too small, some peers may not be reached. 30s and 60s are reasonable timeout values, though network vary. The default timeout is 20 seconds. The 'vis' option may be used to change the output format. four formats are supported: * plain text - easy to read * d3 - json ready to be fed into d3view * dot - graphviz format The d3 format will output a json object ready to be consumed by the chord network viewer, available at the following hash: /ipfs/QmbesKpGyQGd5jtJFUGEB1ByPjNFpukhnKZDnkfxUiKn38 To view your diag output, 'ipfs add' the d3 vis output, and open the following link: https//ipfs.io/ipfs/QmbesKpGyQGd5jtJFUGEB1ByPjNFpukhnKZDnkfxUiKn38/chord# The dot format can be fed into graphviz and other programs that consume the dot format to generate graphs of the network.
public Net ( string timeout = null, IpfsVis vis = null ) : Task
timeout string diagnostic timeout duration
vis IpfsVis output vis. one of: d3, dot. Default d3
Результат Task