liveMedia/include/RTPSource.hh File Reference

#include "FramedSource.hh"
#include "RTPInterface.hh"

Include dependency graph for RTPSource.hh:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  RTPSource
class  RTPReceptionStatsDB
class  RTPReceptionStatsDB::Iterator
class  RTPReceptionStats

Functions

Boolean seqNumLT (u_int16_t s1, u_int16_t s2)


Function Documentation

Boolean seqNumLT ( u_int16_t  s1,
u_int16_t  s2 
)

Definition at line 388 of file RTPSource.cpp.

References False.

Referenced by QCELPDeinterleavingBuffer::deliverIncomingFrame(), AMRDeinterleavingBuffer::deliverIncomingFrame(), RTPReceptionStats::noteIncomingPacket(), and ReorderingPacketBuffer::storePacket().

00388                                              {
00389   // a 'less-than' on 16-bit sequence numbers
00390   int diff = s2-s1;
00391   if (diff > 0) {
00392     return (diff < 0x8000);
00393   } else if (diff < 0) {
00394     return (diff < -0x8000);
00395   } else { // diff == 0
00396     return False;
00397   }
00398 }


Generated on Tue Oct 7 15:39:00 2008 for live by  doxygen 1.5.2