Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

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:

Download

Sample Code (.zip)

2.8 KB
Download

Course Slides (.pdf)

2.1 MB

Zaher el siddik on Aug. 16, 2023

Thank you for making sockets easy to understand.

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.