Table of Contents

Class NetworkInfo

Namespace
Concordium.Sdk.Types
Assembly
Concordium.Sdk.dll

The network information of a node.

public sealed record NetworkInfo : IEquatable<NetworkInfo>
Inheritance
NetworkInfo
Implements
Inherited Members

Constructors

NetworkInfo(string, ulong, ulong, ulong, ulong)

The network information of a node.

public NetworkInfo(string NodeId, ulong PeerTotalSent, ulong PeerTotalReceived, ulong AvgBpsIn, ulong AvgBpsOut)

Parameters

NodeId string

An identifier which it uses to identify itself to other peers and it is used for logging purposes internally. NB. The NodeId is spoofable and as such should not serve as a trust instrument.

PeerTotalSent ulong

The total amount of packets sent by the node.

PeerTotalReceived ulong

The total amount of packets received by the node.

AvgBpsIn ulong

The average bytes per second received by the node.

AvgBpsOut ulong

The average bytes per second transmitted by the node.

Properties

AvgBpsIn

The average bytes per second received by the node.

public ulong AvgBpsIn { get; init; }

Property Value

ulong

AvgBpsOut

The average bytes per second transmitted by the node.

public ulong AvgBpsOut { get; init; }

Property Value

ulong

NodeId

An identifier which it uses to identify itself to other peers and it is used for logging purposes internally. NB. The NodeId is spoofable and as such should not serve as a trust instrument.

public string NodeId { get; init; }

Property Value

string

PeerTotalReceived

The total amount of packets received by the node.

public ulong PeerTotalReceived { get; init; }

Property Value

ulong

PeerTotalSent

The total amount of packets sent by the node.

public ulong PeerTotalSent { get; init; }

Property Value

ulong