Fix recvfrom to fix a crasher bug - and clarify the code a little besides.