3.3. Summary

The two types of communication protocols discussed above cover the great majority of protocols in use. Of course, implementing a real protocol would require a state table and robust memory management, but from the library standpoint, this is how libassa is used to implement them.

It is worth knowing that class CharInBuffer can be effectively used to receive messages in case of Record-Oriented Stream Protocol. The examples in this chapter can be rewritten with the help of CharInBuffer class in much more compact way.