This project contains Python examples and exercises for learning TCP, UDP, IPv4/IPv6, asynchronous sockets, and SSL/TLS.
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
andserver.py
scripts. - Subfolders contain exercises and projects for hands-on practice.
- Python 3.8 or higher
- No external dependencies
- For SSL/TLS examples, you need
cert.pem
andkey.pem
. These are not included in the repository.
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