connection: implement socket protocols
examples: update echo example
*: add license header