I suggest we use a similar mechanism for the document instead of a
boolean for last document. Then, each document is numbered, starting
at 1 and may optionally include the total number of documents. The last
document must contain the total. When the number equals the total, the
server knows that the last document is being received. Having such
a number provides more useful information than a boolean and this information
may prove useful in the future.
Bob Herriot