The man page of epoll_ctl() says about EPOLLPRI
:
There is urgent data available for read(2) operations.
How exactly is "urgent data" defined and who decides which data has priority?
TCP has a feature for sending out-of-band data, also known as urgent data. Normally, data in TCP is stream based; that is, the receiver reads data in the exact same order that the sender wrote the data. The sender may decide to send urgent data, which can skip the stream.
However, it has several implementation problems and very, very few protocols or programs use it (telnet is the only one I'm aware of). Essentially it's a relic and not used in modern programs.
A TCP packet can contain data marked as 'urgent'. This is OOB data, separate from the normal data stream. See, for example, the wikipedia article on this. As the article also notes, it's not commonly used, implementations vary, and relying on it would probably be foolish.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With