WIP: hide Csocket from the API #2