
Christopher Kohlhoff wrote:
Hi Eugene,
--- Eugene Alterman <eugalt@verizon.net> wrote: <snip>
The bottom line of my suggestion is to have 2 distinct interfaces. One is for stream establishment and connection properties management. It provides efficient protocol stack layer navigation and access (but no stream i/o operations). The other one is strictly layered streaming interface for data transfer.
Do you think it makes sense?
Could you sketch out some rough code illustrating what you are thinking of? I'm having trouble seeing how it would fit together, in particular how you would transition from one interface the other.
I think Eugene's basic idea is to have separate factory classes that are not streams that do the accept and connect handling. Once a connection is established, the an operation on the factory returns (or initializes) a stream object. -- Jon Biggar Levanta jon@levanta.com