Hi,
A Stream had no concept of structure. Thus, a CRC cannot be computed. If
you send structured data (such as a series of packets), you can calculate a
CRC for each. However, this must be done in your own code.
I am sure that this has been done many times. The code is "purpose built,"
however. Thus, it is designed to meet specific requirements. And, your
needs may vary from mine. For example, I have an application where I send
packets that are variable-length (fixed-length packets are more common), so
there is extra work in creating the packets before they are sent, and
parsing them after receipt. The actual communications protocol can vary from
simple to complex.
Dick
--
Richard Grier (Microsoft Visual Basic MVP)
See
www.hardandsoftware.net for contact information.
Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.