/// <summary> /// Removes an interface /// </summary> /// <param name="ipInterface">The interface to remove</param> public virtual void RemoveInterface(IPInterface ipInterface) { ipInterface.PacketCaptured -= new eExNetworkLibrary.IPInterface.PacketCapturedHandler(OnPacketCaptured); lInterfaces.Remove(ipInterface); ipInterface.AddressAdded -= new IPInterface.AddressEventHandler(ipInterface_AddressAdded); ipInterface.AddressRemoved -= new IPInterface.AddressEventHandler(ipInterface_AddressRemoved); for (int iC1 = 0; iC1 < ipInterface.IpAddresses.Length && iC1 < ipInterface.Subnetmasks.Length; iC1++) { lLocalAdresses.Remove(ipInterface.IpAddresses[iC1]); } }
/// <summary> /// Creates a new instance of this class /// </summary> /// <param name="ipa">The IPAddress</param> /// <param name="smMask">The subnetmask</param> /// <param name="ipiInterface">The interface</param> public AddressEventArgs(IPAddress ipa, Subnetmask smMask, IPInterface ipiInterface) { this.ipa = ipa; this.smMask = smMask; this.ipiInterface = ipiInterface; }
/// <summary> /// Ceates a new instance of this frame /// </summary> /// <param name="iSourceInterface">The interface which captured this frame</param> /// <param name="dtCaptureTime">The capture time of this frame</param> public TrafficDescriptionFrame(IPInterface iSourceInterface, DateTime dtCaptureTime) { this.iSourceInterface = iSourceInterface; this.dtCaptureTime = dtCaptureTime; }
/// <summary> /// Returns a bool indicating if a specific interface is associated with this direct interface IO handler /// </summary> /// <param name="ipInterface">The interface to search for</param> /// <returns>A bool indicating if a specific interface is associated with this direct interface IO handler</returns> public bool ContainsInterface(IPInterface ipInterface) { return(lInterfaces.Contains(ipInterface)); }