Esempio n. 1
0
        public NetworkInterfaceTester(IMACInterface iface)
        {
            this.iface = iface as IPeripheral;
            if (this.iface == null)
            {
                throw new ConstructionException("This tester can only be attached to an IPeripheral");
            }

            iface.FrameReady += HandleFrame;
            newFrameEvent     = new AutoResetEvent(false);
        }
 public NetworkLink(IMACInterface parent)
 {
     this.Parent = parent;
 }
Esempio n. 3
0
 public NetworkInterfaceTester(IMACInterface iface)
 {
     this.iface        = iface;
     iface.FrameReady += HandleFrame;
 }
Esempio n. 4
0
 public static void CreateNetworkInterfaceTester(this Emulation emulation, string name, IMACInterface iface)
 {
     emulation.ExternalsManager.AddExternal(new NetworkInterfaceTester(iface), name);
 }