コード例 #1
0
ファイル: ARPSender.cs プロジェクト: bmuthoga/dipw
        //methods
        public void ScanAddresses()
        {
            _ownMacAddrByte = _device.GetNetworkInterface().GetPhysicalAddress().GetAddressBytes();
            _ownMacAddr     = _device.GetMacAddress();
            _ownIpAddrByte  = _device.getIpAddressBytes();

            if (!_bgWorker.IsBusy)
            {
                _bgWorker.RunWorkerAsync();
            }
            else
            {
                throw new Exception("Scanning is still ongoing, cannot start another scan!");
            }
        }