Using the socket API

1. Why is symbolic constant INADDR_ANY used?

2. Examine the web server in Appendix 1, and build an equivalent server using the socket API.

3. Implement the simplified API in Appendix 1 using socket functions.

4. Suppose a socket is open and a new thread is created. Will the new thread be able to use the socket?

1. Why is a protocol for a standardized service documented independent of an implementation?

2. What details does an application protocol specify?

3. Give examples of web protocols that illustrate each of the two aspects of an application protocol.

4. What are the two key aspects of application protocols, and what does each include?

Solution:

Looking for help with your homework?
Grab a 30% Discount and Get your paper done!

30% OFF
Turnitin Report
Formatting
Title Page
Citation
Place an Order

Calculate your paper price
Pages (550 words)
Approximate price: -