Added close() calls to all Server constructor fails, also added SO_REUSEADDR

This commit is contained in:
iherman-
2026-05-12 20:38:33 +02:00
parent 78aa891d38
commit d408d08249
2 changed files with 17 additions and 5 deletions

View File

@@ -37,13 +37,13 @@ Represents a connected IRC client.
### Second stage
- [✓] Server can handle multiple clients simultaneously
- [ ] Manage SO_REUSEADDR (restarting server fails to bind same port)
- [✓] Manage SO_REUSEADDR (restarting server fails to bind same port)
### Third stage
- [ ] Client has nickname and username
- [✓] Dispatcher (select function for each command)
- [ ] Implement generic parser (extract command and pass args to command function)
- [ ] Dispatcher (select function for each command)
- [ ] Client has nickname and username
- [ ] PASS command for authenticate
### Fourth stage