internal static SystemNetworkInterface[] GetNetworkInterfaces()
		{
            ArrayList al = new ArrayList();

            AdapterCollection ac = Networking.GetAdapters();
			foreach(Adapter a in ac)
			{
				IpAdapterInfo i = new IpAdapterInfo();
				i.index = (uint)a.Index;
				al.Add(new SystemNetworkInterface(i));
			}

			return (SystemNetworkInterface[])al.ToArray(typeof(SystemNetworkInterface));
		}
예제 #2
0
        internal static SystemNetworkInterface[] GetNetworkInterfaces()
        {
            ArrayList al = new ArrayList();

            AdapterCollection ac = Networking.GetAdapters();

            foreach (Adapter a in ac)
            {
                IpAdapterInfo i = new IpAdapterInfo();
                i.index = (uint)a.Index;
                al.Add(new SystemNetworkInterface(i));
            }

            return((SystemNetworkInterface[])al.ToArray(typeof(SystemNetworkInterface)));
        }
		private SystemNetworkInterface(IpAdapterInfo adapterInfo)
		{
			this.index = adapterInfo.index;
			this.interfaceProperties = new SystemIPInterfaceProperties(adapterInfo);
		}
예제 #4
0
 private SystemNetworkInterface(IpAdapterInfo adapterInfo)
 {
     this.index = adapterInfo.index;
     this.interfaceProperties = new SystemIPInterfaceProperties(adapterInfo);
 }
 public SystemIPInterfaceProperties(IpAdapterInfo adapter)
 {
     index = adapter.index;
 }
		public SystemIPInterfaceProperties(IpAdapterInfo adapter)
		{
			index = adapter.index;
		}