libktorrent  2.1.1
Public Types | Public Member Functions | List of all members
net::Poll Class Reference

#include <poll.h>

Inheritance diagram for net::Poll:
Inheritance graph
[legend]

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.
 

Detailed Description

Class which does polling of sockets

Definition at line 63 of file poll.h.


The documentation for this class was generated from the following file: