Fixed the UDP client issues and some UDP server issues (I think). Fixed some TCP issues, but 8 tests still fail.