Make recvfrom() switchable.

Resolves #192.