I am writing a function to connect client-server. And i cannot use gethostbyname. This function is simple to use. Now i don\'t know how to use getaddrinfo. How can i change geth