move docstring to socket.py
wip _socket2.py