Public Member Functions | Data Fields

PacketQueue Class Reference

#include <P_UDPNet.h>

Collaboration diagram for PacketQueue:
Collaboration graph
[legend]

Public Member Functions

 PacketQueue ()
virtual ~PacketQueue ()
void init (void)
void addPacket (UDPPacketInternal *e, ink_hrtime now=0)
UDPPacketInternalfirstPacket (ink_hrtime t)
UDPPacketInternalgetFirstPacket ()
int size ()
bool IsCancelledPacket (UDPPacketInternal *p)
void FreeCancelledPackets (int numSlots)
void advanceNow (ink_hrtime t)
UDPPacketInternaldequeue_ready (ink_hrtime t)
void check_ready (ink_hrtime now)
ink_hrtime earliest_timeout ()

Data Fields

int nPackets
ink_hrtime lastPullLongTermQ
Queue< UDPPacketInternallongTermQ
Queue< UDPPacketInternalbucket [N_SLOTS]
ink_hrtime delivery_time [N_SLOTS]
int now_slot

Detailed Description

Definition at line 66 of file P_UDPNet.h.


Constructor & Destructor Documentation

PacketQueue::PacketQueue (  )  [inline]

Definition at line 69 of file P_UDPNet.h.

References init(), and lastPullLongTermQ.

virtual PacketQueue::~PacketQueue (  )  [inline, virtual]

Definition at line 76 of file P_UDPNet.h.


Member Function Documentation

void PacketQueue::addPacket ( UDPPacketInternal e,
ink_hrtime  now = 0 
) [inline]
void PacketQueue::advanceNow ( ink_hrtime  t  )  [inline]
void PacketQueue::check_ready ( ink_hrtime  now  )  [inline]

Definition at line 253 of file P_UDPNet.h.

UDPPacketInternal* PacketQueue::dequeue_ready ( ink_hrtime  t  )  [inline]
ink_hrtime PacketQueue::earliest_timeout (  )  [inline]

Definition at line 258 of file P_UDPNet.h.

References bucket, delivery_time, and now_slot.

UDPPacketInternal* PacketQueue::firstPacket ( ink_hrtime  t  )  [inline]

Definition at line 143 of file P_UDPNet.h.

References bucket, delivery_time, DLL< C, L >::head, and now_slot.

Referenced by UDPQueue::SendPackets().

void PacketQueue::FreeCancelledPackets ( int  numSlots  )  [inline]
UDPPacketInternal* PacketQueue::getFirstPacket (  )  [inline]

Definition at line 152 of file P_UDPNet.h.

References dequeue_ready(), and nPackets.

Referenced by UDPQueue::SendPackets().

void PacketQueue::init ( void   )  [inline]

Definition at line 86 of file P_UDPNet.h.

References delivery_time, ink_get_hrtime_internal(), N_SLOTS, and now_slot.

Referenced by advanceNow(), and PacketQueue().

bool PacketQueue::IsCancelledPacket ( UDPPacketInternal p  )  [inline]
int PacketQueue::size (  )  [inline]

Definition at line 158 of file P_UDPNet.h.

References ink_assert, and nPackets.


Field Documentation

Definition at line 83 of file P_UDPNet.h.

Referenced by addPacket(), advanceNow(), earliest_timeout(), firstPacket(), and init().

Definition at line 80 of file P_UDPNet.h.

Referenced by advanceNow(), and PacketQueue().

Definition at line 81 of file P_UDPNet.h.

Referenced by addPacket(), and advanceNow().

Definition at line 79 of file P_UDPNet.h.

Referenced by addPacket(), getFirstPacket(), and size().


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