Ejemplo n.º 1
0
        protected void scanhost(string ip, int timeout = 1000)
        {
            Console.WriteLine("Thread {0} is running", Thread.CurrentThread.ToString());
            var res = NBTScan.GetNBTResponse(ip, timeout);

            nbtque.Enqueue(res);
        }
Ejemplo n.º 2
0
 protected override void ProcessRecord() //Add this Process function method
 {
     //startscanner();
     foreach (var comp in ComputerName)
     {
         // Console.WriteLine("foreach comp in computer");
         // Console.WriteLine("Timeout: {0}",Timeout);
         WriteObject(NBTScan.GetNBTResponseAsync(comp, Timeout).Result);
     }
 }