XBee Node Discovery problem

  while(millis() - start_t < 10 * net_delay_time)
  {
    // Read all available data, even though it may not be a complete packet
    delay(net_delay_time / 10);
  }

What is this while loop/delay about?

Are you not concerned about reading complete packets?