socket library, import proper errnos
Merge pull request #197 from pdunnigan/master

socket library, import proper errnos