Polish up sendto/recvfrom wrappers

Make the sendto/recvfrom wrappers a little more friendly to work with.