Class SwarmOptions
Configuration options for communication with other peers.
Inherited Members
Namespace: Ipfs.Engine
Assembly: Ipfs.Engine.dll
Syntax
public class SwarmOptions
Properties
| Improve this Doc View SourceMinConnections
The low water mark for peer connections.
Declaration
public int MinConnections { get; set; }
Property Value
Type | Description |
---|---|
Int32 | Defaults to 0. |
Remarks
The AutoDialer is used to maintain at least this number of connections.
This is an opt-feature. The value must be positive to enable it.
PrivateNetworkKey
The key of the private network.
Declaration
public PreSharedKey PrivateNetworkKey { get; set; }
Property Value
Type | Description |
---|---|
PreSharedKey | The key must either null or 32 bytes (256 bits) in length. |
Remarks
When null, the public network is used. Otherwise, the network is considered private and only peers with the same key will be communicated with.
When using a private network, the BootstrapPeers must also use this key.