On Thu May 18 17:53:59 2023 +0000, Zebediah Figura wrote:
The thread should be unnecessary, you can just use nonblocking I/O. It doesn't make a big difference, but it's probably easier to read without the thread. If you do use the thread, you need to clean it up.
If you mean setting `O_NONBLOCK` on `server`, that would cause `accept` to return `EWOULDBLOCK` or `EAGAIN`.
By "clean up", do you mean only calling `WaitForSingleObject` on it, or is there more that I would need to do?