Error handling readliner stevenss reentrant readline

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: adder function in Figure 12.44. Your form should include two text boxes that users will fill in with the two numbers they want to add together. Your form should also request content using the GET method. B. Check your work by using a real browser to request the form from T INY, submit the filled in form to T INY, and then display the the dynamic content generated by adder. 664 CHAPTER 12. NETWORK PROGRAMMING Homework Problem 12.15 [Category 2]: Extend T INY to support the HTTP HEAD method. Check your work using TELNET as a Web client. Homework Problem 12.16 [Category 3]: Extend T INY so that it serves dynamic contest requested by the HTTP POST method. Check your work using your favorite Web browser. Homework Problem 12.17 [Category 3]: Build a concurrent T INY server based on processes. Homework Problem 12.18 [Category 3]: Build a concurrent T INY server based on threads. Homework Problem 12.19 [Category 4]: Build your own concurrent Web proxy cache. Appendix A Error handling A.1 Introduction Programmers should always check the error codes returned by system-level functions. There are many subtle ways that things can go wrong, and it only makes sense to use the status information that the kernel is able to provide us. Unfortunately, programmers are often reluctant to do error checking because it clutters their code, turning a single line of code into a multi-line conditional statement. Error checking is also confusing because different functions indicate errors in differen...
View Full Document

Ask a homework question - tutors are online