Your system must handle hundreds of concurrent connections on a single execution thread. It must never block or suffer from memory leaks. Key Requirements The server operates under strict architectural constraints:
Exam 06 requires you to write a server that can accept multiple client connections simultaneously. It must broadcast messages from one client to all other connected clients. 42 Exam 06
| Aspect | Project minishell | Exam 06 | |--------|---------------------|---------| | Time allowed | Weeks | 4 hours | | External libraries | Readline allowed | Readline allowed | | Bonus features | Required for 125% | Not graded | | Memory leaks | Tolerated in project (but not ideal) | Zero tolerance | | Code editor | Any (VS Code, IDE) | Terminal + vim only | | Parsing robustness | Full error handling | Minimum for valid input | Your system must handle hundreds of concurrent connections
As with all 42 projects, a single memory leak or "Double Free" results in an immediate failure. 3. Common Pitfalls It must broadcast messages from one client to