update network code (gSocket) to remove any deprecated functions. Also use getaddrinfo to it's full potential. These changes should help with IPV6 migration should it be needed.