tsocket: rewrite tsocket_guide.txt to reflect the current APIs