socket library, import proper errnos