示例#1
0
 static void Main(string[] args)
 {
     wlanEnabler enabler = new wlanEnabler();
     VirtualRouterHost.IVirtualRouterHost host;
     host = new VirtualRouterHost.VirtualRouterHost();
     host.SetPassword("egordasha");
     host.SetConnectionSettings("User-AP", 10);
     IEnumerable<SharableConnection> list = host.GetSharableConnections();
     SharableConnection ics = (from c in list
                               where c.Name.Contains("vpnclient")
                               select c).First();
     if (host.Start(ics) && host.SetIP("2.0.4.1"))
         Console.ReadLine();
 }
示例#2
0
        static void Main(string[] args)
        {
            wlanEnabler enabler = new wlanEnabler();

            VirtualRouterHost.IVirtualRouterHost host;
            host = new VirtualRouterHost.VirtualRouterHost();
            host.SetPassword("egordasha");
            host.SetConnectionSettings("User-AP", 10);
            IEnumerable <SharableConnection> list = host.GetSharableConnections();
            SharableConnection ics = (from c in list
                                      where c.Name.Contains("vpnclient")
                                      select c).First();

            if (host.Start(ics) && host.SetIP("2.0.4.1"))
            {
                Console.ReadLine();
            }
        }