Method Name
poll.register
Method Signature
poll.register(fileDescriptor[, eventmask])
Method Overview
This method is invoked on a poll instance which is obtained through the select.poll() method. When called it registers a file descriptor for a set of I/O events. After registration poll.poll(timeout) method can be invoked to check for I/O events within the specific duration.
| Event Type | Description |
| POLLIN | Data available for read |
| POLLPRI | Priority data is ready for read |
| POLLOUT | Data can be written |
| POLLERR | Error Condition |
| POLLHUP | Hang-up by the writing end. EOF will be detected only after consuming all the data that has been written already. |
| POLLRDHUP | A state in which the receiving-side of a TCP connection waits for data without knowing the connection has been closed by the peer. That is, the existence of an half-open connection. |
| POLLNVAL | Descriptor not open |