Here are some initial thoughts about transport layer design. It
presents one approach on layered design:
http://code.google.com/p/setp/downloads/list
The layers are in accordance with the design chapter in the
specification:
Input and output chains are driven by two dedicated threads and the
thread apartments are marked with colors. Gray color stands for shared
apartment i.e. multi threaded code requiring thread locking.
-tommi
The connection context layer consists of multiple context classes of
which only connection context and acknowledgement context and shared
thread apartment (multi threaded) classes.
-tommi