make socket#connect a private method

see also #222