Code

Removed `gethostbyname' and replaced with protocol independend `getaddrinfo'