libktorrent  2.2.0
Classes | Public Member Functions | List of all members
utp::OutputQueue Class Reference

#include <outputqueue.h>

Public Member Functions

int add (const PacketBuffer &packet, Connection::WPtr conn)
 
void send (net::ServerSocket *sock)
 

Detailed Description

Manages the send queue of all UTP server sockets

Definition at line 37 of file outputqueue.h.

Member Function Documentation

◆ add()

int utp::OutputQueue::add ( const PacketBuffer packet,
Connection::WPtr  conn 
)

Add an entry to the queue.

Parameters
dataThe packet
connThe connection this packet belongs to
Returns
The number of queued packets

◆ send()

void utp::OutputQueue::send ( net::ServerSocket sock)

Attempt to send the queue on a socket

Parameters
sockThe socket

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