Added getaddrinfo() for DNS lookups if necessary
Moved modelClient flag into the socket_info structure