Exemple #1
0
 public void OpenNcapturePackets(ICaptureDevice device, DeviceMode captureMode, int timeOutMillis)
 {
     device.OnPacketArrival += new PacketArrivalEventHandler(Device_OnPacketArrival);
     // open the device for capturing
     device.Open(captureMode, timeOutMillis); // read all packets on network # if normal read Current Pcs Packets only
     System19.Say("I am Going to use device {0} to Extract Packets ", device.Description);
     device.StartCapture();                   // starts capturing packets
     //device.StopCapture();
 }
        // monitors system
        public static List <string> GetListOfNetAdaptDevices()
        {
            // get adapters
            List <string> devs    = new List <string>();
            var           devices = CaptureDeviceList.Instance;

            if (devices.Count < 1)
            {
                System19.Say("I Could not find any Network Devices within the system.");
            }
            foreach (ICaptureDevice device in devices)
            {
                devs.Add(device.Description);
            }
            // Might Neeed to go into details with the Device list of Available

            return(devs);
        }
Exemple #3
0
 public void ThreadCaller()
 {
     GetAllIps();
     PutDisplay();
     System19.Say("You have " + ALLINFO.Count + " Computers connected to you network");
 }