P2P, cosmetic: break out buffer send(2) code into separate function