Removed redundant check of @eof in socket.read

Method immediate returns nil on EOF; first check for @eof (returning '') should never be possible.
Added ability to pass in the family for getaddrinfo call for both params and proxy, defaulting to unspecified as now.

(Sorry, was supposed to be in two branches.)