Added addrinfo structs and created sockets.