diff -r 000000000000 -r 307788aac0a8 rtp/rtpstack/inc/rtpcommdef.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rtp/rtpstack/inc/rtpcommdef.h Tue Feb 02 01:03:15 2010 +0200 @@ -0,0 +1,83 @@ +/* +* Copyright (c) 2004-2005 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + + + +#ifndef RtpCommDef_H +#define RtpCommDef_H + +#include +#include "rtputil.h" +//#include "RtpSessionDef.h" + + +// CONSTANTS +const TUint KDefaultLocalPort = 5000; +const TUint KMaxLocalPort = 0x0ffff; +const TInt KMaxPorts = 2; +const TUint KMaximumRtpPacketSize = 8192; // 65536 bits = 8192 bytes + +/** +* class for rtp&rtcp received call back. +* +* @lib RtpService.dll +*/ +class MReceivedNotify + { + public: + virtual void OnRtpReceivedL() = 0; + virtual void OnRtcpReceivedL() = 0; + virtual void OnReceptionError( TPortType aPort, TInt aError ) = 0; + virtual void OnPacketRejected(TPortType aPort) = 0; + }; + +/** +* Holds an a packet and request status for buffering if socket is busy. +* +* @lib RtpService.dll +*/ +/*class TSendArrayItem + { + public: + + // Copy constructor + TSendArrayItem( TSendArrayItem& aItem ) : + iPacket(aItem.iPacket), + iStatus(aItem.iStatus) + { + } + + // Constructor + TSendArrayItem( const TDesC8& aPacket, TRequestStatus& aStatus ) : + iPacket(aPacket), + iStatus( aStatus ) + { + } + + + public: // Data + const TDesC8& iPacket; + TRequestStatus& iStatus; + }; +*/ +#endif // RtpCommDef_H + + + + +