prevent 0 size packets from reaching the recv function

Also changed the for loop to represent how I'm collecting data for the
data figures.