Commit graph

11 commits

Author SHA1 Message Date
root
fc1cc26b0f rewrite client__pollout
algorithm:
1. call client__pollout__before_fresh_lines
2. if error, return
3. find line length
4. if no line, set POLLIN and goto 8
5. call client__pollout__line
6. if error, goto 7
7. finished with this line; goto 3
8. move the final incomplete line to the start of the client's buffer
9. return
2025-05-21 09:32:25 +00:00
root
c90622c564 fix: client__pollout always returning error, not handling error 2025-05-17 08:46:26 +00:00
root
484d81baa8 client__pollin: read as much as possible; client__pollout: do processing 2025-05-17 08:10:55 +00:00
root
29f54ba779 echo server, multiple clients, lines <256 bytes 2025-05-13 12:07:03 +00:00
root
d54596514c echo then close connection 2025-05-11 08:22:07 +00:00
root
60e9bcf95c todo: error conditions 2025-05-07 14:35:20 +00:00
root
d69183c0d1 simplify pollfd deletion: by index 2025-05-07 14:32:00 +00:00
root
f096cb00e7 say goodbye to clients then close socket 2025-05-07 14:21:07 +00:00
root
1cf28e9565 bugs 2025-05-07 13:57:04 +00:00
root
72b9f421e1 loop pollfds: only checking server for now 2025-05-07 13:35:04 +00:00
root
9f3d59cf15 separate into files 2025-05-07 11:38:56 +00:00
Renamed from hello.s (Browse further)