private function scanNetblock($netblocks)
    {

        foreach ($netblocks as $netblock) {
            $range = $this->getAddressRange($netblock);
            $rangeAddresses = [];

            for ($pos = $range['begin']; $pos <= $range['end']; $pos++) {
                $ip = long2ip($pos);
                if (substr($ip, - 2) !== '.0' && substr($ip, - 4) !== '.255') {
                    $rangeAddresses[] = $ip;
                }
            }

            $this->scanAddresses($rangeAddresses);
        }

        return true;
    }
private function scanNetblock($netblocks)
    {

        foreach ($netblocks as $netblock) {
            $range = $this->getAddressRange($netblock);
            $rangeAddresses = [];

            for ($pos = $range['begin']; $pos <= $range['end']; $pos++) {
                $ip = long2ip($pos);
                if (substr($ip, - 2) !== '.0' && substr($ip, - 4) !== '.255') {
                    $rangeAddresses[] = $ip;
                }
            }

            $this->scanAddresses($rangeAddresses);
        }

        return true;
    }
private function scanNetblock ( $ netblocks ) { foreach ( $ netblocks as $ netblock ) { $ range = $ this -> getAddressRange ( $ netblock ) ; $ rangeAddresses = [ ] ; for ( $ pos = $ range [ 'begin' ] ; $ pos <= $ range [ 'end' ] ; $ pos ++ ) { $ ip = long2ip ( $ pos ) ; if ( substr ( $ ip , - 2 ) !== '.0' && substr ( $ ip , - 4 ) !== '.255' ) { $ rangeAddresses [ ] = $ ip ; } } $ this -> scanAddresses ( $ rangeAddresses ) ; } return true ; }
Retrieve a list of addresses based on a netblock and kick off scanAddress

@param array $netblocks
@return boolean
Retrieve a list of addresses based on a netblock and kick off scanAddress