libktorrent  2.2.0
Public Types | Public Member Functions | List of all members
utp::PollPipe Class Reference

#include <pollpipe.h>

Inheritance diagram for utp::PollPipe:
Inheritance graph
[legend]

Public Types

typedef QSharedPointer< PollPipePtr
 
- Public Types inherited from net::WakeUpPipe
typedef QSharedPointer< WakeUpPipePtr
 
- Public Types inherited from net::PollClient
typedef QSharedPointer< PollClientPtr
 

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.
 
- Public Member Functions inherited from net::WakeUpPipe
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.
 
- Public Member Functions inherited from bt::Pipe
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

- Protected Attributes inherited from net::WakeUpPipe
QMutex mutex
 
bool woken_up
 
- Protected Attributes inherited from bt::Pipe
int reader
 
int writer
 

Detailed Description

Special wake up pipe for UTP polling

Definition at line 53 of file pollpipe.h.


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