added a basic socket example using getaddrinfo in new_sockets