Front end to the socket %getaddrinfo() function.
Code = p_getaddrinfo(server, outlist )
This function returns 0 if successful or -1 if an error occurs.