implemented iteration network addresses using yield, require php 5.5 for this