removed while loops around recvfrom()