When using the getaddrinfo method, I’m providing an IP address and the port number. I’m getting a linked list in the out variable. It works fine. But I have a conceptual doubt here. When i am giving both the IP address and port, how is it there are so many possible sockets returned? Shouldnt there be only one?
When using the getaddrinfo method, I’m providing an IP address and the port number.
Share
From the getaddrinfo man page: