Rename PutBuffer() to SendBuffer() and make it more generic

Prepare for promoting the code to CChan::SendBuffer(). Use the same
method name, and make it more generic by allowing specifying a range.