libktorrent  2.2.0
Public Member Functions | List of all members
net::SocketReader Class Referenceabstract
Inheritance diagram for net::SocketReader:
Inheritance graph
[legend]

Public Member Functions

virtual void onDataReady (bt::Uint8 *buf, bt::Uint32 size)=0
 

Detailed Description

Definition at line 51 of file trafficshapedsocket.h.

Member Function Documentation

◆ onDataReady()

virtual void net::SocketReader::onDataReady ( bt::Uint8 *  buf,
bt::Uint32  size 
)
pure virtual

Function which will be called whenever data has been read from the socket. This data should be dealt with, otherwise it will be discarded.

Parameters
bufThe buffer
sizeThe size of the buffer

Implemented in bt::HttpConnection, and bt::PacketReader.


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