static NodeInfo() { Current = new NodeInfo() { Identity = Configuration.NodeIdentity, HopCount = Configuration.Extensions.P2P().MaxHop }; }
private void RegisterNodeInfo(NodeInfo node) { if (!Nodes.ContainsKey(node.Identity)) { Nodes.Add(node.Identity, node); NodeChannels.Add(node.Identity, CallbackChannel); } else { Nodes[node.Identity] = node; NodeChannels[node.Identity] = CallbackChannel; } }
public void NotifyNodeInfo(NodeInfo node) { RegisterNodeInfo(node); }
public void NodeInfoResponse(NodeInfo node) { RegisterNodeInfo(node); }