libktorrent
2.2.0
|
#include <pollpipe.h>
Public Types | |
typedef QSharedPointer< PollPipe > | Ptr |
![]() | |
typedef QSharedPointer< WakeUpPipe > | Ptr |
![]() | |
typedef QSharedPointer< PollClient > | Ptr |
Public Member Functions | |
PollPipe (net::Poll::Mode mode) | |
bool | polling () const |
Is the pipe being polled. | |
bool | polling (bt::Uint16 conn) const |
Are we polling a connection. | |
net::Poll::Mode | pollingMode () const |
Polling mode. | |
void | prepare (net::Poll *p, bt::Uint16 conn_id, PollPipe::Ptr self) |
Prepare the poll. | |
void | reset () override |
Reset the poll_index. | |
![]() | |
int | fd () const override |
Get the filedescriptor to poll. | |
void | handleData () override |
Read all the dummy data. | |
virtual void | wakeUp () |
Wake up the other socket. | |
bool | wokenUp () const |
Have we been woken up. | |
![]() | |
int | read (Uint8 *buffer, int max_len) |
Read data from the read end of the pipe. | |
int | readerSocket () const |
Get the reader socket. | |
int | write (const Uint8 *data, int len) |
Write data to the write end of the pipe. | |
int | writerSocket () const |
Get the writer socket. | |
Additional Inherited Members | |
![]() | |
QMutex | mutex |
bool | woken_up |
![]() | |
int | reader |
int | writer |
Special wake up pipe for UTP polling
Definition at line 35 of file pollpipe.h.