changed getudp() argument ordering, minor stylistic changes