libktorrent
2.2.0
|
#include <authenticationmonitor.h>
Public Member Functions | |
void | add (AuthenticateBase *s) |
void | clear () |
void | remove (AuthenticateBase *s) |
void | shutdown () |
void | update () |
![]() | |
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. | |
Static Public Member Functions | |
static AuthenticationMonitor & | instance () |
Additional Inherited Members | |
![]() | |
enum | Mode { INPUT, OUTPUT } |
Monitors ongoing authentication attempts. This class is a singleton.
Definition at line 38 of file authenticationmonitor.h.
void bt::AuthenticationMonitor::add | ( | AuthenticateBase * | s | ) |
Add a new AuthenticateBase object.
s |
void bt::AuthenticationMonitor::clear | ( | ) |
Clear all AuthenticateBase objects, also delets them
void bt::AuthenticationMonitor::remove | ( | AuthenticateBase * | s | ) |
Remove an AuthenticateBase object
s |
void bt::AuthenticationMonitor::shutdown | ( | ) |
Shutdown the authentication manager
void bt::AuthenticationMonitor::update | ( | ) |
Check all AuthenticateBase objects.