I am using C++ and my first attempt was to use SendArp() for each IP, but it takes 255 seconds since each SendARP() returns after waiting 1 second.