SOCU:poll: Difference between revisions
→Events: Fix values for flags and add new flags |
|||
Line 82: | Line 82: | ||
! Value | ! Value | ||
! Name | ! Name | ||
! Description | ! Description | ||
|- | |- | ||
| 0x01 | | 0x01 | ||
| | | POLLRDNORM | ||
| | | Normal data can be read. | ||
|- | |- | ||
| 0x02 | | 0x02 | ||
| | | POLLRDBAND | ||
| | | Priority Band Data can be read. | ||
|- | |- | ||
| 0x04 | | 0x04 | ||
| | | POLLPRI | ||
| | | Urgent data can be read. | ||
|- | |- | ||
| 0x08 | | 0x08 | ||
| POLLWRNORM | |||
| Normal data can be written. | |||
|- | |||
| 0x10 | |||
| POLLWRBAND | |||
| Priority data can be written. | |||
|- | |||
| 0x20 | |||
| POLLERR | | POLLERR | ||
| Socket has an error condition. | | Socket has an error condition. | ||
|- | |- | ||
| | | 0x40 | ||
| | | POLLHUP | ||
| | | Socket has been disconnected. | ||
|- | |- | ||
| | | 0x80 | ||
| POLLNVAL | | POLLNVAL | ||
| Invalid socket handle. This is set if you use fd=-1, which is non-standard behavior. | | Invalid socket handle. This is set if you use fd=-1, which is non-standard behavior. | ||
|- | |- | ||
| | | POLLRDNORM <nowiki>|</nowiki> POLLRDBAND | ||
| | | POLLIN | ||
| | | Data can be read. | ||
| | |- | ||
| POLLWRNORM | |||
| POLLOUT | |||
| Data can be written. | |||
|} | |} |