Socket Programming in Python Part 1: Handling Connections (Summary)
You’ve already covered a lot of ground in part one of this video course series! To build your multi-connection server and client, you’ve leveraged several functions and methods of the socket module.
In this video course, you’ve created:
- A simple socket server and client
- An improved version that handles multiple connections simultaneously
That means you’re well on your way to building a robust client and server. In the next installment of this video course series, you’ll take your work a step further by implementing a server-client application that functions like a full-fledged socket application, complete with its own custom header and content. You’ll ensure that your application can handle errors when they arise.
For further investigation, check out:
- 📰 Python’s Socket Programming HOWTO
- 📰 Python’s Internet Protocols and Support
- 📰 Python’s
socketserver
— A framework for network servers - 📰 Berkeley Sockets
- 📰 Transmission Control Protocol
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
00:00 Let’s review what you’ve learned so far. In part one of this video course, you have learned some background on TCP sockets. You’ve learned how to write Python code to create and use sockets, create a simple server and client, and create a server and client that can handle concurrency.
00:22 You also learned something about command-line arguments. And that concludes part one of this video course.
00:30 In part two of this course, you’ll learn how to write a more complete application using sockets in Python.
Zak Mountford on Nov. 3, 2023
Any ideas when part II is coming out? This has been really useful and interesting!
Bartosz Zaczyński RP Team on Nov. 3, 2023
@Zak Mountford Thank you! The second part of this course is currently being recorded. There’s no set date yet because it’ll need some editing and updates, but I’d expect it within the next few weeks.
Zak Mountford on Nov. 3, 2023
That is amazing, thank you. In the meantime, do you have any resources you could point me to that would be useful reading for making secure servers?
Bartosz Zaczyński RP Team on Nov. 3, 2023
@Zak Mountford Have you checked out the recommended tutorial this course is based on?
Become a Member to join the conversation.
Zaher el siddik on Aug. 16, 2023
Thank you for making sockets easy to understand.