///<summary>Creates a DhtIpopNode.</summary> /// <param name="NodeConfig">NodeConfig object</param> /// <param name="IpopConfig">IpopConfig object</param> public DhtIpopNode(NodeConfig node_config, IpopConfig ipop_config, DHCPConfig dhcp_config) : base(node_config, ipop_config, dhcp_config) { DhtAddressResolver dar = new DhtAddressResolver(AppNode.Dht, _ipop_config.IpopNamespace); Shutdown.OnExit += dar.Stop; _address_resolver = dar; _connected = false; AppNode.Node.StateChangeEvent += StateChangeHandler; StateChangeHandler(AppNode.Node, AppNode.Node.ConState); }