Skip to content

Hassan7628/Python-Socket-Programming

Repository files navigation

Socket Programming in Python

This project contains Python examples and exercises for learning TCP, UDP, IPv4/IPv6, asynchronous sockets, and SSL/TLS.

Project Structure

1_TCP/
2_UDP/
3_Exercises/
4_Handling_IPv4_and_IPv6/
5_Review/
6_SSL_TLS/
7_Review2/
8_Socket_Project/

  • Each folder contains client.py and server.py scripts.
  • Subfolders contain exercises and projects for hands-on practice.

Requirements

  • Python 3.8 or higher
  • No external dependencies
  • For SSL/TLS examples, you need cert.pem and key.pem. These are not included in the repository.

Generating SSL Certificates

You can generate your own self-signed certificate and key using OpenSSL:

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout key.pem -out cert.pem

About

This repo contain basics of python synchronous and asynchronous sockets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages