Add a basic sendrecv that should be a direct transcription of the C interface.