16.5. Exercises

16-1. Sockets. What is the difference between connection-oriented versus connectionless?

16-2. Sockets. What is the difference between TCP and UDP?

16-3. Sockets. Between TCP and UDP, which type of servers accept connections and hands them off to separate sockets for client communication?

16-4. Clients. Update the TCP (tsTclnt.py) and UDP (tsUclnt.py) clients so that the server name is not hard-coded into the application. Allow the user to specify a hostname and port number, and only use the default values if either or both parameters are missing.

16-5. Internetworking and Sockets. Implement Guido's sample TCP client/server programs found in Section 7.2.2 of the Python Library Reference and get them to work. Set up the server, then ...

Get Core Python Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.