C# Class Ipfs.Commands.IpfsSwarm

Inheritance: Ipfs.Json.IpfsCommand
Datei anzeigen Open project: TrekDev/net-ipfs-api

Public Methods

Method Description
Addrs ( ) : Task>

List known addresses. Useful to debug. ipfs swarm addrs lists all addresses this node is aware of.

Connect ( string address ) : Task

Open connection to a given address 'ipfs swarm connect' opens a connection to a peer address. The address format is an ipfs multiaddr: ipfs swarm connect /ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ

Disconnect ( IEnumerable multiAddresses ) : Task>

Close connection to a given address 'ipfs swarm disconnect' closes a connection to a peer address. The address format is an ipfs multiaddr: ipfs swarm disconnect /ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ

Disconnect ( IEnumerable multiAddresses ) : Task>

Close connection to a given address 'ipfs swarm disconnect' closes a connection to a peer address. The address format is an ipfs multiaddr: ipfs swarm disconnect /ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ

Disconnect ( MultiAddress multiAddress ) : Task

Close connection to a given address 'ipfs swarm disconnect' closes a connection to a peer address. The address format is an ipfs multiaddr: ipfs swarm disconnect /ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ

Disconnect ( string multiAddress ) : Task

Close connection to a given address 'ipfs swarm disconnect' closes a connection to a peer address. The address format is an ipfs multiaddr: ipfs swarm disconnect /ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ

Peers ( ) : Task>

List peers with open connections ipfs swarm peers lists the set of peers this node is connected to.

Private Methods

Method Description
IpfsSwarm ( Uri commandUri, HttpClient httpClient, IJsonSerializer jsonSerializer ) : Ipfs.Json

Method Details

Addrs() public method

List known addresses. Useful to debug. ipfs swarm addrs lists all addresses this node is aware of.
public Addrs ( ) : Task>
return Task>

Connect() public method

Open connection to a given address 'ipfs swarm connect' opens a connection to a peer address. The address format is an ipfs multiaddr: ipfs swarm connect /ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ
public Connect ( string address ) : Task
address string address of peer to connect to
return Task

Disconnect() public method

Close connection to a given address 'ipfs swarm disconnect' closes a connection to a peer address. The address format is an ipfs multiaddr: ipfs swarm disconnect /ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ
public Disconnect ( IEnumerable multiAddresses ) : Task>
multiAddresses IEnumerable addresses of peers to disconnect from
return Task>

Disconnect() public method

Close connection to a given address 'ipfs swarm disconnect' closes a connection to a peer address. The address format is an ipfs multiaddr: ipfs swarm disconnect /ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ
public Disconnect ( IEnumerable multiAddresses ) : Task>
multiAddresses IEnumerable
return Task>

Disconnect() public method

Close connection to a given address 'ipfs swarm disconnect' closes a connection to a peer address. The address format is an ipfs multiaddr: ipfs swarm disconnect /ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ
public Disconnect ( MultiAddress multiAddress ) : Task
multiAddress MultiAddress address of peer to disconnect from
return Task

Disconnect() public method

Close connection to a given address 'ipfs swarm disconnect' closes a connection to a peer address. The address format is an ipfs multiaddr: ipfs swarm disconnect /ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ
public Disconnect ( string multiAddress ) : Task
multiAddress string address of peer to disconnect from
return Task

Peers() public method

List peers with open connections ipfs swarm peers lists the set of peers this node is connected to.
public Peers ( ) : Task>
return Task>