Add HostPreference export
Added examples/tls-echo