realtimenetprots/rtp/shimrtp/inc/rtpsession_internal.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef RTP_INTERNAL_H_
       
    22 #define RTP_INTERNAL_H_
       
    23 #include "rtp.h"
       
    24 
       
    25 
       
    26 
       
    27 class RRtpSession_Internal: public RRtpSession
       
    28 	{
       
    29 	
       
    30 public:
       
    31 	using RRtpSession::OpenL;
       
    32 
       
    33 
       
    34 	/** 
       
    35 	@internalComponent
       
    36     
       
    37 	Opens the session and initialises it.
       
    38 
       
    39 	No events will be generated until after control returns to the
       
    40 	active scheduler. The client has this time to initialise the
       
    41 	object by adding event callbacks.
       
    42 
       
    43 	This API uses the RTP Stack implemented as a CF Prorotocol. The SubConnection
       
    44 	which is passed to the API should be initialised with the RTP Params. 
       
    45 
       
    46 	@param aServer         Socket Server. 
       
    47 	@param aLocalAddr      The maximum size of a received packet.
       
    48 	@param aRemoteAddr     The RTCP socket.
       
    49 	@param aMaxRXSize      The maximum size of a received packet.
       
    50 	@param aSubConnection  The subconnection with RTP Parametrs set on it.
       
    51 	@param aCName          The CNAME. It needs to be same as the one set using the API:
       
    52     					   CSubConRTPGenericParamSet::SetCNAMEL(const TDesC8& aCName).
       
    53     					   If the descriptor is KNullDesC8,the RTCP session is not created.
       
    54                            
       
    55 	*/
       
    56 	IMPORT_C void OpenL(RSocketServ& aServer, TSockAddr& aLocalAddr,
       
    57 						TSockAddr& aRemoteAddr,
       
    58 						TInt aMaxRXSize, RSubConnection& aSubConnection, TInt aPriority = EPriorityNormal, 
       
    59 						const TDesC8& aCNAME = KNullDesC8);
       
    60 						
       
    61 						
       
    62 	
       
    63 	/**
       
    64 	@internalComponent
       
    65 
       
    66 	Gets the remote RTCP Statistics for the current RTP session
       
    67     
       
    68 	@param SSRC of the sender
       
    69 	@param RTCP Statistics class that stores the RTCP statistics for the 
       
    70 	current RTP session
       
    71 	*/
       
    72 	
       
    73 	IMPORT_C TInt RtcpStatistics(TUint32 aSsrc, TRtcpStatistics &aRtcpStatistics);
       
    74 	
       
    75 	
       
    76 	
       
    77 	/**
       
    78 	@internalComponent
       
    79 
       
    80 	Pre and Post processing function for RTP and RTCP packets
       
    81 
       
    82 	If a function is registered for a particular event, it will be called when 
       
    83 	that event occurs. One callback function can be associated with more than 1
       
    84 	callback registration. Callback functions take a pointer argument
       
    85 	which was supplied as part of the registration
       
    86 
       
    87 	@param aType Event type
       
    88 		
       
    89 	@param aCallback Callback object
       
    90 		
       
    91 	@param aPtr Pointer to data that needs to be passed to the callback function
       
    92 	*/
       
    93 	IMPORT_C void SetPrePostProcessingRegisterCallback(MPrePostProcessingCallback* aPrePostProcessingCallback);
       
    94 
       
    95 
       
    96 	};
       
    97 
       
    98 #endif //RTP_INTERNAL_H_
       
    99 
       
   100