server/peer.c: Add a flags argument to `p_txend'.