expand icon
book TCP/IP Protocol Suite 4th Edition by Behrouz Forouzan cover

TCP/IP Protocol Suite 4th Edition by Behrouz Forouzan

Edition 4ISBN: 978-0073376042
book TCP/IP Protocol Suite 4th Edition by Behrouz Forouzan cover

TCP/IP Protocol Suite 4th Edition by Behrouz Forouzan

Edition 4ISBN: 978-0073376042
Exercise 6
There are several functions in UNIX that can be used to retrieve host information, such as the IP address and port number-for example, gethostbyname , gethostby- address , getservebyname , and getservebyport. Try to find some information about these functions and use them in a short program.
Explanation
Verified
like image
like image

6. A structure called hostent holds the ...

close menu
TCP/IP Protocol Suite 4th Edition by Behrouz Forouzan
cross icon