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; }
public NetworkInterfaceTester(IMACInterface iface) { this.iface = iface; iface.FrameReady += HandleFrame; }
public static void CreateNetworkInterfaceTester(this Emulation emulation, string name, IMACInterface iface) { emulation.ExternalsManager.AddExternal(new NetworkInterfaceTester(iface), name); }