set errno,connect only once for tcp
some cDefines not yet added to settings.js
completed listen() and accept()