Add secure method to tcp socket
Merge branch 'dborkan-secure'