How to use getaddrinfo()
- The
getaddrinfo() is a really powerful tool for
- hostname can be host (like apache.com) or ip address
- hint parameter can specify what type of address you want (see attached file for reference)
- returns a linked list of
addinfo struct that contains


You may want to use these files as reference:
ex15 answer.zip