Added Sequence() and SequenceAck() to class Connection.
Use static_cast, not C-casts.
Added comment.
Don't use anonymous namespaces for templates.
Commented out clang support hack as it broke gcc 4.8 support.
Fleshing out more of the state machine.