add indirection level to socket example, as to be able to do the TSEC protocol magic