multimediacommscontroller/mmccsubcontroller/src/mccrtcpreceiver.cpp
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:    RTCP Receiver class from RTP Datasource
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 #include "mccrtcpreceiver.h"
       
    23 #include "mccdef.h"
       
    24 #include "mccinternaldef.h"
       
    25 #include "mccsubcontrollerlogs.h"
       
    26 #include "mccinternalevents.h"
       
    27 #include "mccresources.h"
       
    28 #include "mccrtpmanager.h"
       
    29 
       
    30 
       
    31 // EXTERNAL DATA STRUCTURES
       
    32 
       
    33 // EXTERNAL FUNCTION PROTOTYPES  
       
    34 
       
    35 // CONSTANTS
       
    36 
       
    37 // MACROS
       
    38 
       
    39 // LOCAL CONSTANTS AND MACROS
       
    40 
       
    41 // MODULE DATA STRUCTURES
       
    42 
       
    43 // LOCAL FUNCTION PROTOTYPES
       
    44 
       
    45 // FORWARD DECLARATIONS
       
    46 
       
    47 
       
    48 // ============================= LOCAL FUNCTIONS ===============================
       
    49 
       
    50 
       
    51 // ============================ MEMBER FUNCTIONS ===============================
       
    52 
       
    53 // -----------------------------------------------------------------------------
       
    54 // CMccRtcpReceiver::CMccRtcpReceiver
       
    55 // C++ default constructor can NOT contain any code, that
       
    56 // might leave.
       
    57 // -----------------------------------------------------------------------------
       
    58 //
       
    59 CMccRtcpReceiver::CMccRtcpReceiver( 
       
    60     CMccRtpManager* aRtpManager,
       
    61     MAsyncEventHandler& aEventHandler, 
       
    62     MMccResources& aMccResources,
       
    63     CRtpAPI& aRtpAPI ) : 
       
    64     iStream( KNullId ),
       
    65     iEventHandler( aEventHandler ), 
       
    66     iMccResources( aMccResources ),
       
    67     iRtpAPI( aRtpAPI ),
       
    68     iSessionId( KNullId ),
       
    69     iRtpManager( aRtpManager )
       
    70     {
       
    71 
       
    72     }
       
    73 
       
    74 // -----------------------------------------------------------------------------
       
    75 // CMccRtcpReceiver::NewL
       
    76 // Two-phased constructor.
       
    77 // -----------------------------------------------------------------------------
       
    78 //
       
    79 CMccRtcpReceiver* CMccRtcpReceiver::NewL( 
       
    80     CMccRtpManager* aRtpManager,
       
    81     MAsyncEventHandler& aEventHandler, 
       
    82     MMccResources& aMccResources,
       
    83     CRtpAPI& aRtpAPI )
       
    84     {
       
    85     CMccRtcpReceiver* self = new( ELeave ) CMccRtcpReceiver( aRtpManager,
       
    86                                                              aEventHandler,
       
    87                                                              aMccResources, 
       
    88                                                              aRtpAPI );
       
    89     CleanupStack::PushL( self );
       
    90     self->ConstructL();
       
    91     CleanupStack::Pop( self );
       
    92     return self;
       
    93     }
       
    94 
       
    95 // -----------------------------------------------------------------------------
       
    96 // CMccRtcpReceiver::ConstructL
       
    97 // Symbian 2nd phase constructor can leave.
       
    98 // -----------------------------------------------------------------------------
       
    99 //
       
   100 void CMccRtcpReceiver::ConstructL( )
       
   101     {
       
   102     }
       
   103     
       
   104 // -----------------------------------------------------------------------------
       
   105 // CMccRtcpReceiver::~CMccRtcpReceiver
       
   106 // Destructor
       
   107 // -----------------------------------------------------------------------------
       
   108 //
       
   109 CMccRtcpReceiver::~CMccRtcpReceiver()
       
   110     {
       
   111     __SUBCONTROLLER( "CMccRtcpReceiver::~CMccRtcpReceiver()" )
       
   112     
       
   113     if ( iSessionId != KNullId )
       
   114         {
       
   115         iRtpAPI.SetNonRTPDataObserver( iSessionId, NULL );
       
   116         }
       
   117     }
       
   118 
       
   119 // -----------------------------------------------------------------------------
       
   120 // CMccRtcpReceiver::HandleReceiving
       
   121 // -----------------------------------------------------------------------------   
       
   122 //
       
   123 TInt CMccRtcpReceiver::HandleReceiving( TRtpId aSessionId, TBool aEnableReceiving )
       
   124     {
       
   125     __SUBCONTROLLER( "CMccRtcpReceiver::HandleReceiving()" )
       
   126     TInt err = KErrNone;
       
   127     
       
   128     // TBD! Never disable (maybe disabling is needed in future)
       
   129     //
       
   130     aEnableReceiving = ETrue;
       
   131     
       
   132     if ( iEnableRtcp != aEnableReceiving )
       
   133         { 
       
   134         iSessionId = aSessionId;
       
   135         iEnableRtcp = aEnableReceiving;
       
   136         if ( iEnableRtcp )
       
   137             {
       
   138             __SUBCONTROLLER( "CMccRtcpReceiver::HandleReceiving(), enabling" )
       
   139             err = iRtpAPI.RegisterRtcpObserver( iSessionId, *this );
       
   140             if ( !err )
       
   141                 {
       
   142                 err = iRtpAPI.SetNonRTPDataObserver( iSessionId, this ); 
       
   143                 }
       
   144             }
       
   145         else
       
   146             {
       
   147             __SUBCONTROLLER( "CMccRtcpReceiver::HandleReceiving(), disabling" )
       
   148             iRtpAPI.UnregisterRtcpObserver( iSessionId );
       
   149             iRtpAPI.SetNonRTPDataObserver( iSessionId, NULL );
       
   150             }
       
   151         }
       
   152     return err;
       
   153     }
       
   154 
       
   155 // -----------------------------------------------------------------------------
       
   156 // CMccRtcpReceiver::SdesReceived()
       
   157 // From MRtcpObserver
       
   158 // -----------------------------------------------------------------------------
       
   159 //
       
   160 void CMccRtcpReceiver::SdesReceived( TRtpSSRC aSSRC, 
       
   161                                      const TRtpSdesParams& aParams )
       
   162     { 
       
   163     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::SdesReceived() SSRC:", aSSRC )
       
   164     
       
   165     // Take copies of sdes member data and create new sdes object which will point
       
   166     // to those new data. This will prevent data loss while transfering the event
       
   167     // through IPC.
       
   168 
       
   169     TPckgBuf<TRtpSdesParams> tempSdesPackage( aParams );
       
   170     
       
   171     TInt sdesPackageLen( sizeof( tempSdesPackage ) );
       
   172     
       
   173     TInt sdesLen = sdesPackageLen +
       
   174                    aParams.iCName.Length() + 
       
   175                    aParams.iUserName.Length() + 
       
   176                    aParams.iEmail.Length() + 
       
   177                    aParams.iPhoneNumber.Length() + 
       
   178                    aParams.iLocation.Length() + 
       
   179                    aParams.iSwToolName.Length() + 
       
   180                    aParams.iNoticeStatus.Length() + 
       
   181                    aParams.iPrivate.Length();
       
   182                     
       
   183     if ( sdesLen <= KMccMaxRtcpPacketDataLength )
       
   184         {
       
   185         ClearEventData();
       
   186         
       
   187         TRtpSdesParams sdes;
       
   188         iEventData.iSsrc = aSSRC;
       
   189         
       
   190         TUint8* currentPtr = const_cast<TUint8*>( iEventData.iRtcpPacketData.Ptr() );
       
   191         currentPtr += sdesPackageLen;
       
   192         
       
   193         iEventData.iRtcpPacketData.SetLength( sdesPackageLen );
       
   194         
       
   195         TInt currentPos( sdesPackageLen );
       
   196         
       
   197         DoSdesMemberCopy( sdes.iCName, &currentPtr, currentPos, 
       
   198                           iEventData.iRtcpPacketData, aParams.iCName );
       
   199                           
       
   200         DoSdesMemberCopy( sdes.iUserName, &currentPtr, currentPos, 
       
   201                           iEventData.iRtcpPacketData, aParams.iUserName );
       
   202                           
       
   203         DoSdesMemberCopy( sdes.iEmail, &currentPtr, currentPos, 
       
   204                           iEventData.iRtcpPacketData, aParams.iEmail ); 
       
   205                           
       
   206         DoSdesMemberCopy( sdes.iPhoneNumber, &currentPtr, currentPos, 
       
   207                           iEventData.iRtcpPacketData, aParams.iPhoneNumber ); 
       
   208                           
       
   209         DoSdesMemberCopy( sdes.iLocation, &currentPtr, currentPos, 
       
   210                           iEventData.iRtcpPacketData, aParams.iLocation ); 
       
   211                           
       
   212         DoSdesMemberCopy( sdes.iSwToolName, &currentPtr, currentPos, 
       
   213                           iEventData.iRtcpPacketData, aParams.iSwToolName ); 
       
   214                           
       
   215         DoSdesMemberCopy( sdes.iNoticeStatus, &currentPtr, currentPos, 
       
   216                           iEventData.iRtcpPacketData, aParams.iNoticeStatus );
       
   217                           
       
   218         DoSdesMemberCopy( sdes.iPrivate, &currentPtr, currentPos, 
       
   219                           iEventData.iRtcpPacketData, aParams.iPrivate );
       
   220         
       
   221         // Finally copy sdes into beginning of the data
       
   222         TPckgBuf<TRtpSdesParams> sdesPackage( sdes );
       
   223         iEventData.iRtcpPacketData.Insert( 0, sdesPackage );
       
   224         
       
   225         SendRtcpEventToClient( KRtcpSdesPacket, ETrue, EFalse );
       
   226         }
       
   227     }
       
   228     
       
   229 // -----------------------------------------------------------------------------
       
   230 // CMccRtcpReceiver::ByeReceived()
       
   231 // From MRtcpObserver
       
   232 // -----------------------------------------------------------------------------
       
   233 //
       
   234 void CMccRtcpReceiver::ByeReceived( TRtpId aStreamId, 
       
   235                                     TRtpSSRC aSSRC, 
       
   236                                     const TDesC8& aReason )    
       
   237     {
       
   238     __SUBCONTROLLER_INT2( "CMccRtcpReceiver::ByeReceived() STREAM:", aStreamId, 
       
   239                           "SSRC:", aSSRC )
       
   240 
       
   241     iStream = aStreamId;
       
   242     
       
   243     SendRtcpEventWithPacketDataToClient( KRtcpByePacket, aSSRC, aReason, ETrue );
       
   244     }
       
   245     
       
   246 // -----------------------------------------------------------------------------
       
   247 // CMccRtcpReceiver::AppReceived()
       
   248 // From MRtcpObserver
       
   249 // -----------------------------------------------------------------------------
       
   250 //
       
   251 void CMccRtcpReceiver::AppReceived( TRtpId aStreamId, 
       
   252                                     TRtpSSRC aSSRC, 
       
   253                                     const TRtcpApp& aApp )    
       
   254     {
       
   255     __SUBCONTROLLER_INT2( "CMccRtcpReceiver::AppReceived() STREAM:", aStreamId,
       
   256                           "SSRC:", aSSRC )
       
   257     
       
   258     iStream = aStreamId;
       
   259     
       
   260     TPckgBuf<TRtcpApp> app( aApp );
       
   261     SendRtcpEventWithPacketDataToClient( KRtcpAppPacket, aSSRC, app, ETrue );
       
   262     }
       
   263     
       
   264 // -----------------------------------------------------------------------------
       
   265 // CMccRtcpReceiver::SrReceived()
       
   266 // From MRtcpObserver
       
   267 // -----------------------------------------------------------------------------
       
   268 //
       
   269 void CMccRtcpReceiver::SrReceived( TRtpId aStreamId, 
       
   270                                    TRtpSSRC aSSRC, 
       
   271                                    const TTimeStamps& aTimeStamps )
       
   272     {
       
   273     __SUBCONTROLLER_INT2( "CMccRtcpReceiver::SrReceived() STREAM:", aStreamId,
       
   274                           "SSRC:", aSSRC )
       
   275     
       
   276     iStream = aStreamId;
       
   277     
       
   278     ClearEventData();
       
   279     
       
   280     iEventData.iSsrc = aSSRC;
       
   281     iEventData.iTimeStamps = aTimeStamps;
       
   282     iRtpAPI.GetStreamStatistics( iStream, iEventData.iStats );
       
   283     
       
   284     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::SrReceived() packets sent:", iEventData.iStats.iNumPacketsSent )
       
   285     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::SrReceived() octets sent:", iEventData.iStats.iCumNumOctetsSent )
       
   286     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::SrReceived() roundtrip delay:", iEventData.iStats.iRoundTripDelay )
       
   287     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::SrReceived() tx bandwidth:", iEventData.iStats.iTxBandwidth )
       
   288     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::SrReceived() packets lost:", iEventData.iStats.iCumNumPacketsLost )
       
   289     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::SrReceived() fractions lost:", iEventData.iStats.iFractionLost )
       
   290     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::SrReceived() arrival jitter:", iEventData.iStats.iArrivalJitter )
       
   291     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::SrReceived() rx bandwidth:", iEventData.iStats.iRxBandwidth )
       
   292     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::SrReceived() channelbuffer size:", iEventData.iStats.iChannelBufferSize )
       
   293     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::SrReceived() ntp timestamp sec:", iEventData.iStats.iNTPTimeStampSec )
       
   294     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::SrReceived() ntp timestamp frac:", iEventData.iStats.iNTPTimeStampFrac )
       
   295     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::SrReceived() timestamp:", iEventData.iStats.iTimeStamp )
       
   296     
       
   297     SendRtcpEventToClient( KRtcpSrPacket, EFalse, ETrue );
       
   298     }
       
   299     
       
   300 // -----------------------------------------------------------------------------
       
   301 // CMccRtcpReceiver::RrReceived()
       
   302 // From MRtcpObserver
       
   303 // -----------------------------------------------------------------------------
       
   304 //
       
   305 void CMccRtcpReceiver::RrReceived( TRtpId aStreamId, TRtpSSRC aSSRC )
       
   306     {
       
   307     __SUBCONTROLLER_INT2( "CMccRtcpReceiver::RrReceived() STREAM:", aStreamId,
       
   308                           "SSRC:", aSSRC )
       
   309     
       
   310     iStream = aStreamId;
       
   311     
       
   312     ClearEventData();
       
   313      
       
   314     iEventData.iSsrc = aSSRC;
       
   315     iRtpAPI.GetStreamStatistics( iStream, iEventData.iStats );
       
   316     
       
   317     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::RrReceived() packets sent:", iEventData.iStats.iNumPacketsSent )
       
   318     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::RrReceived() octets sent:", iEventData.iStats.iCumNumOctetsSent )
       
   319     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::RrReceived() roundtrip delay:", iEventData.iStats.iRoundTripDelay )
       
   320     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::RrReceived() tx bandwidth:", iEventData.iStats.iTxBandwidth )
       
   321     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::RrReceived() packets lost:", iEventData.iStats.iCumNumPacketsLost )
       
   322     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::RrReceived() fractions lost:", iEventData.iStats.iFractionLost )
       
   323     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::RrReceived() arrival jitter:", iEventData.iStats.iArrivalJitter )
       
   324     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::RrReceived() rx bandwidth:", iEventData.iStats.iRxBandwidth )
       
   325     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::RrReceived() channelbuffer size:", iEventData.iStats.iChannelBufferSize )
       
   326     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::RrReceived() ntp timestamp sec:", iEventData.iStats.iNTPTimeStampSec )
       
   327     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::RrReceived() ntp timestamp frac:", iEventData.iStats.iNTPTimeStampFrac )
       
   328     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::RrReceived() timestamp:", iEventData.iStats.iTimeStamp )
       
   329     
       
   330     SendRtcpEventToClient( KRtcpRrPacket, EFalse, ETrue );
       
   331     }
       
   332 
       
   333 // -----------------------------------------------------------------------------
       
   334 // CMccRtcpReceiver::NonRTPDataReceived()
       
   335 // From MRtcpObserver
       
   336 // -----------------------------------------------------------------------------
       
   337 //
       
   338 void CMccRtcpReceiver::NonRTPDataReceived( TUint /*aPort*/,
       
   339                                            TBool aRTPPort,
       
   340                                            const TDesC8& aNonRTPData )
       
   341     {
       
   342     __SUBCONTROLLER( "CMCCRtcpReceiver::NonRTPDataReceived()" )
       
   343 
       
   344     // Currently, Non-RTP data is accepted only on the RTCP port
       
   345     if ( !aRTPPort )
       
   346         {
       
   347         SendRtcpEventWithPacketDataToClient( KRtcpPacketUndefined, 
       
   348                                              0, 
       
   349                                              aNonRTPData,
       
   350                                              EFalse );
       
   351         }
       
   352     }
       
   353 
       
   354 // -----------------------------------------------------------------------------
       
   355 // CMccRtcpEvent::SendRtcpEventWithPacketDataToClient()
       
   356 // Constructs RTCP event containing RTCP packet data and sends the event to
       
   357 // client side
       
   358 // -----------------------------------------------------------------------------
       
   359 //
       
   360 TInt CMccRtcpReceiver::SendRtcpEventWithPacketDataToClient( 
       
   361     TMccRtcpPacketType aPacketType, 
       
   362     const TRtpSSRC& aSSRC,
       
   363     const TDesC8& aData,
       
   364     TBool aResolveEndpointBySsrc )
       
   365     {
       
   366     if ( aData.Length() > KMccMaxRtcpPacketDataLength )
       
   367         {
       
   368         __SUBCONTROLLER( "CMCCRtcpReceiver::SendRtcpEventWithPacketDataToClient(), data size too big ")
       
   369         
       
   370         return KErrOverflow;
       
   371         }
       
   372     
       
   373     ClearEventData();
       
   374          
       
   375     iEventData.iSsrc = aSSRC;
       
   376     iEventData.iRtcpPacketData.Copy( aData );
       
   377 
       
   378     SendRtcpEventToClient( aPacketType, aResolveEndpointBySsrc, EFalse );
       
   379         
       
   380     return KErrNone;   
       
   381     }
       
   382 
       
   383 // -----------------------------------------------------------------------------
       
   384 // CMccRtcpEvent::SendRtcpEventToClient()
       
   385 // Sends the RTCP event to client side
       
   386 // -----------------------------------------------------------------------------
       
   387 //
       
   388 void CMccRtcpReceiver::SendRtcpEventToClient( 
       
   389     TMccRtcpPacketType aPacketType,
       
   390     TBool aResolveEndpointBySsrc,
       
   391     TBool aResolveEndpointByRtpStreamId )
       
   392     {    
       
   393     __SUBCONTROLLER_INT1( "CMccRtcpReceiver::SendRtcpEventToClient() packetType:", aPacketType )
       
   394     
       
   395     TUint32 endpointId( 0 );
       
   396     
       
   397     if ( aResolveEndpointBySsrc )
       
   398         {
       
   399         __SUBCONTROLLER( "CMCCRtcpReceiver::SendRtcpEventToClient(), resolve endpointId by ssrc" )
       
   400         MDataSource* source = 0;
       
   401         MDataSink* sink = 0;
       
   402         if ( !iMccResources.FindNetworkResourceByRtpSsrc( iEventData.iSsrc, &source, &sink ) )
       
   403             {
       
   404             __SUBCONTROLLER( "CMCCRtcpReceiver::SendRtcpEventToClient(), resolved" )
       
   405             endpointId = source != 0 ? MCC_ENDPOINT_ID( source ) : 
       
   406                                        MCC_ENDPOINT_ID( sink );
       
   407             }
       
   408         }
       
   409     
       
   410     if ( aResolveEndpointByRtpStreamId )
       
   411         {
       
   412         __SUBCONTROLLER( "CMCCRtcpReceiver::SendRtcpEventToClient(), resolve endpointId by streamId" )
       
   413         MDataSource* source = 0;
       
   414         MDataSink* sink = 0;
       
   415         if ( !iMccResources.FindNetworkResourceByRtpStreamId
       
   416                 ( iRtpManager->MccSessionId(), iStream, &source, &sink ) )
       
   417             {
       
   418             __SUBCONTROLLER( "CMCCRtcpReceiver::SendRtcpEventToClient(), resolved" )
       
   419             endpointId = source != 0 ? MCC_ENDPOINT_ID( source ) : 
       
   420                                        MCC_ENDPOINT_ID( sink );
       
   421             }
       
   422         }
       
   423 
       
   424     iEventData.iRtcpPacketType = aPacketType;
       
   425     
       
   426     TMccEvent event;
       
   427     event.iEventCategory = KMccEventCategoryRtcp;
       
   428     event.iEventType = KMccRtcpReceived;
       
   429     event.iEndpointId = endpointId;
       
   430     
       
   431     // Save some stack memory
       
   432     {
       
   433     event.iEventData.Copy( TMccRtcpEventDataPackage( iEventData ) );
       
   434     }
       
   435     
       
   436     TMccInternalEvent internalEvent( KMccRtpSourceUid, 
       
   437                                      EMccInternalEventNone,
       
   438                                      event );
       
   439     
       
   440     // Stream id, link id and session id will be filled on the way up
       
   441     iEventHandler.SendEventToClient( internalEvent );	
       
   442     }
       
   443 
       
   444 // -----------------------------------------------------------------------------
       
   445 // CMccRtcpEvent::DoSdesMemberCopy()
       
   446 // -----------------------------------------------------------------------------
       
   447 //   
       
   448 void CMccRtcpReceiver::DoSdesMemberCopy( 
       
   449     TPtrC8& aDestination,
       
   450     TUint8** aCurrentPtr, 
       
   451     TInt& aCurrentPos,
       
   452     TDes8& aRtcpPacketData, 
       
   453     const TDesC8& aSource )
       
   454     {
       
   455     TInt len( aSource.Length() );
       
   456     
       
   457     if ( aCurrentPos + len <= aRtcpPacketData.MaxLength() )
       
   458         {
       
   459         aRtcpPacketData.Insert( aCurrentPos, aSource );
       
   460         
       
   461         aDestination.Set( *aCurrentPtr, len );
       
   462         
       
   463         *aCurrentPtr += len;
       
   464         aCurrentPos += len;
       
   465         }
       
   466     else
       
   467         {
       
   468         aDestination.Set( *aCurrentPtr, 0 );
       
   469         }
       
   470     }
       
   471 
       
   472 // -----------------------------------------------------------------------------
       
   473 // CMccRtcpEvent::ClearEventData()
       
   474 // -----------------------------------------------------------------------------
       
   475 //     
       
   476 void CMccRtcpReceiver::ClearEventData()
       
   477     {
       
   478     iEventData = TMccRtcpEventData();
       
   479     }
       
   480     
       
   481 // ========================== OTHER EXPORTED FUNCTIONS =========================
       
   482 
       
   483 //  End of File