#include <internal.h>
Public Member Functions | |
bool | getFirstSeqnum (u16 &result) |
BufferedPacketPtr | popFirst () |
BufferedPacketPtr | popSeqnum (u16 seqnum) |
void | insert (BufferedPacketPtr &p_ptr, u16 next_expected) |
void | incrementTimeouts (float dtime) |
u32 | getTimedOuts (float timeout) |
std::vector< ConstSharedPtr< BufferedPacket > > | getResend (float timeout, u32 max_packets) |
void | print () |
bool | empty () |
u32 | size () |
Private Types | |
typedef std::list< BufferedPacketPtr >::iterator | FindResult |
Private Member Functions | |
FindResult | findPacketNoLock (u16 seqnum) |
Private Attributes | |
std::list< BufferedPacketPtr > | m_list |
u16 | m_oldest_non_answered_ack |
std::mutex | m_list_mutex |
|
private |
bool con::ReliablePacketBuffer::empty | ( | ) |
References m_list, and m_list_mutex.
Referenced by con::Channel::getOutgoingSequenceNumber().
|
private |
bool con::ReliablePacketBuffer::getFirstSeqnum | ( | u16 & | result | ) |
References m_list, and m_list_mutex.
Referenced by con::ConnectionReceiveThread::checkIncomingBuffers(), con::Channel::getOutgoingSequenceNumber(), con::ConnectionReceiveThread::handlePacketType_Reliable(), and con::ConnectionSendThread::sendPackets().
std::vector< ConstSharedPtr< BufferedPacket > > con::ReliablePacketBuffer::getResend | ( | float | timeout, |
u32 | max_packets ) |
References m_list, m_list_mutex, and RESEND_SCALE_BASE.
Referenced by con::ConnectionSendThread::processReliableCommand().
u32 con::ReliablePacketBuffer::getTimedOuts | ( | float | timeout | ) |
References m_list, and m_list_mutex.
Referenced by con::UDPPeer::isTimedOut().
void con::ReliablePacketBuffer::incrementTimeouts | ( | float | dtime | ) |
References m_list, and m_list_mutex.
void con::ReliablePacketBuffer::insert | ( | BufferedPacketPtr & | p_ptr, |
u16 | next_expected ) |
References BASE_HEADER_SIZE, errorstream, m_list, m_list_mutex, m_oldest_non_answered_ack, MAX_RELIABLE_WINDOW_SIZE, p(), con::PACKET_TYPE_RELIABLE, readU8(), sanity_check, con::seqnum_in_window(), SEQNUM_MAX, and warningstream.
Referenced by con::ConnectionReceiveThread::handlePacketType_Reliable(), and con::ConnectionSendThread::sendAsPacketReliable().
BufferedPacketPtr con::ReliablePacketBuffer::popFirst | ( | ) |
References m_list, m_list_mutex, m_oldest_non_answered_ack, and p().
Referenced by con::ConnectionReceiveThread::checkIncomingBuffers(), and con::ConnectionReceiveThread::handlePacketType_Reliable().
BufferedPacketPtr con::ReliablePacketBuffer::popSeqnum | ( | u16 | seqnum | ) |
References dout_con, findPacketNoLock(), LOG, m_list, m_list_mutex, m_oldest_non_answered_ack, and p().
Referenced by con::ConnectionReceiveThread::handlePacketType_Control().
void con::ReliablePacketBuffer::print | ( | ) |
References dout_con, LOG, m_list, and m_list_mutex.
u32 con::ReliablePacketBuffer::size | ( | ) |
References m_list, and m_list_mutex.
Referenced by con::ConnectionReceiveThread::handlePacketType_Control(), con::UDPPeer::processReliableSendCommand(), con::ConnectionSendThread::rawSendAsPacket(), and con::ConnectionSendThread::sendPackets().
|
private |
Referenced by empty(), findPacketNoLock(), getFirstSeqnum(), getResend(), getTimedOuts(), incrementTimeouts(), insert(), popFirst(), popSeqnum(), print(), and size().
|
private |
Referenced by empty(), getFirstSeqnum(), getResend(), getTimedOuts(), incrementTimeouts(), insert(), popFirst(), popSeqnum(), print(), and size().
|
private |
Referenced by insert(), popFirst(), and popSeqnum().