PREV UP NEXT C++ socket classes for OS/2

1.6.3: seqbuf Class

seqbuf is an implementations of streambuf in terms of seqdev. To create a working streambuf, implement a seqdev and "mixin" the result to seqbuf. All the streambuf virtual functions are implemented with the required meaning.

Additional functions.


virtual void mayberead();

virtual void maybewrite();

The virtual function mayberead will try to read in as many characters as can be read without blocking into the streambuf. It uses readTry.

The virtual function maybewrite will try to write as many buffered characters as can be written without blocking. It uses writeTry.