https://github.com/abdelkarimhajji/web-server
🌐 The 42 Network WebServ project teaches students how to make a web server. They learn about how the internet works and how to handle requests from users. By building their own server, they learn valuable skills for creating websites. #LearnToCode #WebDev 🔧
https://github.com/abdelkarimhajji/web-server
1337cursus 1337school 42projects http-server webserver
Last synced: about 1 month ago
JSON representation
🌐 The 42 Network WebServ project teaches students how to make a web server. They learn about how the internet works and how to handle requests from users. By building their own server, they learn valuable skills for creating websites. #LearnToCode #WebDev 🔧
- Host: GitHub
- URL: https://github.com/abdelkarimhajji/web-server
- Owner: abdelkarimhajji
- Created: 2024-02-12T14:05:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-01T02:55:49.000Z (about 1 year ago)
- Last Synced: 2025-04-02T01:14:00.411Z (2 months ago)
- Topics: 1337cursus, 1337school, 42projects, http-server, webserver
- Language: C++
- Homepage:
- Size: 12.5 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The server part :
1- create a socket
2- bind the socket : associate a socket with a specific local address and port
3- put the socket in the listening state
4- starting from this point, i keep monitoring -using select- select() works by blocking until something happens on a file descriptor (aka a socket)
5- if some fd is ready for reading, the function -accept- return a new fd that will be used for communication, leaving the original free to accept other incoming connections