|
libktorrent
2.1.1
|
#include <poll.h>

Public Types | |
| enum | Mode { INPUT, OUTPUT } |
Public Member Functions | |
| int | add (int fd, Mode mode) |
| Add a file descriptor to the poll (returns the index of it) | |
| int | add (PollClient::Ptr pc) |
| Add a poll client. | |
| int | poll (int timeout=-1) |
| Poll all sockets. | |
| bool | ready (int index, Mode mode) const |
| Check if a socket at an index is read. | |
| void | reset () |
| Reset the poll. | |
1.8.18