A
Andersen
How should I use the OP_WRITE flag when using selectors and sockets? It
tells me when the network card is ready for me to write things to it.
The problem is that I do not always have data to write, so the selector
almost busy waits by returning with OP_WRITE ready indicating that it is
ready to accept data, but I have nothing to write, so it busy waits.
How do I solve this?
tells me when the network card is ready for me to write things to it.
The problem is that I do not always have data to write, so the selector
almost busy waits by returning with OP_WRITE ready indicating that it is
ready to accept data, but I have nothing to write, so it busy waits.
How do I solve this?