Document how to write recv and send loops.

Refs #30.