Changes

Jump to navigation Jump to search
231 bytes removed ,  14:05, 24 November 2019
→‎Events: Fix values for flags and add new flags
Line 82: Line 82:  
! Value
 
! Value
 
! Name
 
! Name
! Input/Output
   
! Description
 
! Description
 
|-
 
|-
 
| 0x01
 
| 0x01
| POLLIN
+
| POLLRDNORM
| Both
+
| Normal data can be read.
| Can recv() data from socket without blocking. For listen sockets, this means you can accept() a connection without blocking.
   
|-
 
|-
 
| 0x02
 
| 0x02
| POLLPRI
+
| POLLRDBAND
| Both
+
| Priority Band Data can be read.
| There is OOB data ready to recv(). Appears that recv()'ing without OOB flag still reads OOB data?
   
|-
 
|-
 
| 0x04
 
| 0x04
| ???
+
| POLLPRI
| ???
+
| Urgent data can be read.
| Have never seen this flag. Could possibly be POLLHUP (need to test).
   
|-
 
|-
 
| 0x08
 
| 0x08
| ???
+
| POLLWRNORM
| ???
+
| Normal data can be written.
| This flag is almost always set when requested.
   
|-
 
|-
 
| 0x10
 
| 0x10
| POLLOUT
+
| POLLWRBAND
| Both
+
| Priority data can be written.
| Can send() data to socket without blocking. For a non-blocking connect(), this means the connection has completed (need to test).
   
|-
 
|-
 
| 0x20
 
| 0x20
 +
| POLLERR
 +
| Socket has an error condition.
 +
|-
 +
| 0x40
 +
| POLLHUP
 +
| Socket has been disconnected.
 +
|-
 +
| 0x80
 
| POLLNVAL
 
| POLLNVAL
| Out
   
| 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
| POLLERR
+
| POLLIN
| Out
+
| Data can be read.
| Socket error.
   
|-
 
|-
| ???
+
| POLLWRNORM
| POLLHUP
+
| POLLOUT
| Out
+
| Data can be written.
| Socket has been disconnected.
   
|}
 
|}
115

edits

Navigation menu