lib/portscanner.js
function (callback) {
    checkPortStatus(port, host, opts, function (error, statusOfPort) {
      numberOfPortsChecked++
      if (statusOfPort === status) {
        foundPort = true
        callback(error)
      } else {
        port = portList ? portList[numberOfPortsChecked] : port + 1
        callback(null)
      }
    })
  }
function (callback) {
    checkPortStatus(port, host, opts, function (error, statusOfPort) {
      numberOfPortsChecked++
      if (statusOfPort === status) {
        foundPort = true
        callback(error)
      } else {
        port = portList ? portList[numberOfPortsChecked] : port + 1
        callback(null)
      }
    })
  }
function ( callback ) { checkPortStatus ( port , host , opts , function ( error , statusOfPort ) { numberOfPortsChecked ++ if ( statusOfPort === status ) { foundPort = true callback ( error ) } else { port = portList ? portList [ numberOfPortsChecked ] : port + 1 callback ( null ) } } ) }
Checks the status of the port
Checks the status of the port