Welcome to the Intern Material repository!
This repository contains resources, code samples, and exercises used in the training program for interns. It is organized by topics and lectures to help you learn fundamental concepts in computer science and software engineering.
- Introduction to Servers
- (Add more sections here as you add more lectures and materials)
Folder: servers/
Lecture: Threaded Python Socket HTTP Server
This lecture introduces the concept of servers using a simple threaded HTTP server implemented in Python. The server demonstrates how to:
- Listen for incoming TCP connections.
- Handle each client in a separate thread for concurrency.
- Respond with a valid HTTP/1.1 response.
- Gracefully shut down on
CTRL+C.
-
Navigate to the
serversdirectory:cd servers -
Run the server:
python server_threaded.py
-
Send a request (from another terminal):
curl http://localhost:9999/
Or use a browser/Postman.
-
Expected Output:
Hello, World!
- Sockets and networking basics
- Multithreading for concurrent client handling
- HTTP protocol basics
- Graceful shutdown of network servers
Feel free to add your own notes, code, or improvements as you progress through the training!
This project is licensed under the MIT License.