This class implements Dns, IAddressResolver, IManagedHandler, and ITranslator. It provides most functionality needed by ManagedIpopNode.
Inheritance: System.Net.Dns, IAddressResolver, ITranslator
Esempio n. 1
0
 /// <summary>
 /// The constructor takes two config files
 /// </summary>
 /// <param name="NodeConfigPath">Node config object</param>
 /// <param name="IpopConfigPath">Ipop config object</param>
 public ManagedIpopNode(NodeConfig node_config, IpopConfig ipop_config) :
     base(node_config, ipop_config, null)
 {
     _dhcp_server = ManagedDhcpServer.GetManagedDhcpServer(_ipop_config.VirtualNetworkDevice);
     _dhcp_config = _dhcp_server.Config;
     _marad       = new ManagedAddressResolverAndDns(AppNode.Node, _dhcp_server,
                                                     ((ManagedDhcpServer)_dhcp_server).LocalIP, _ipop_config.Dns.NameServer,
                                                     _ipop_config.Dns.ForwardQueries);
     _dns = _marad;
     _address_resolver = _marad;
     _translator       = _marad;
 }
Esempio n. 2
0
 /// <summary>
 /// The constructor takes two config files
 /// </summary>
 /// <param name="NodeConfigPath">Node config object</param>
 /// <param name="IpopConfigPath">Ipop config object</param>
 public ManagedIpopNode(NodeConfig node_config, IpopConfig ipop_config) :
   base(node_config, ipop_config, null)
 {
   _dhcp_server = ManagedDhcpServer.GetManagedDhcpServer(_ipop_config.VirtualNetworkDevice);  
   _dhcp_config = _dhcp_server.Config;
   _marad = new ManagedAddressResolverAndDns(AppNode.Node, _dhcp_server,
       ((ManagedDhcpServer) _dhcp_server).LocalIP, _ipop_config.Dns.NameServer,
       _ipop_config.Dns.ForwardQueries);
   _dns = _marad;
   _address_resolver = _marad;
   _translator = _marad;
 }