Edge-triggered interfaces are too difficult?
Posted Mar 16, 2003 8:07 UTC (Sun) by Ross
In reply to: Edge-triggered interfaces are too difficult?
Parent article: Edge-triggered interfaces are too difficult?
By "edge triggered" they don't mean that you don't get an event if you don't check at the right time. They mean that you only get told about an event once, rather than every time.
So, if data arrived right after you checked the socket, you wouldn't know about the new event. No problem. You would be notified about it next time you checked.
I don't understand dneto's example at all.
A well-written select() application will already treat notifications like one-time events and do as much input as possible. Not doing so just means more round-trips through the event loop.
to post comments)