Questions
As we conclude, here is a list of questions for you to test your knowledge regarding this chapter’s material. You will find the answers in the Assessments section of the Appendix:
- Which method of the socket module allows a server socket to accept requests from a client socket from another host?
- Which methods of the socket module allow you to send and receive data from an IP address?
- Which method of the socket module allows you to implement port scanning with sockets and to check the port state?
- What is the difference between the TCP and UDP protocols, and how do you implement them in Python with the socket module?
- What is the Python module and the main classes we can use to create an HTTP server?