Revert "Use an int for recv return codes."

This reverts commit 9245e3213b59f0046729e708e1d3e19df0c5678b.
Try read instead of recv for win.