|
1 /* |
|
2 * Copyright (c) 2004-2005 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef RtpCommDef_H |
|
22 #define RtpCommDef_H |
|
23 |
|
24 #include <e32def.h> |
|
25 #include "rtputil.h" |
|
26 //#include "RtpSessionDef.h" |
|
27 |
|
28 |
|
29 // CONSTANTS |
|
30 const TUint KDefaultLocalPort = 5000; |
|
31 const TUint KMaxLocalPort = 0x0ffff; |
|
32 const TInt KMaxPorts = 2; |
|
33 const TUint KMaximumRtpPacketSize = 8192; // 65536 bits = 8192 bytes |
|
34 |
|
35 /** |
|
36 * class for rtp&rtcp received call back. |
|
37 * |
|
38 * @lib RtpService.dll |
|
39 */ |
|
40 class MReceivedNotify |
|
41 { |
|
42 public: |
|
43 virtual void OnRtpReceivedL() = 0; |
|
44 virtual void OnRtcpReceivedL() = 0; |
|
45 virtual void OnReceptionError( TPortType aPort, TInt aError ) = 0; |
|
46 virtual void OnPacketRejected(TPortType aPort) = 0; |
|
47 }; |
|
48 |
|
49 /** |
|
50 * Holds an a packet and request status for buffering if socket is busy. |
|
51 * |
|
52 * @lib RtpService.dll |
|
53 */ |
|
54 /*class TSendArrayItem |
|
55 { |
|
56 public: |
|
57 |
|
58 // Copy constructor |
|
59 TSendArrayItem( TSendArrayItem& aItem ) : |
|
60 iPacket(aItem.iPacket), |
|
61 iStatus(aItem.iStatus) |
|
62 { |
|
63 } |
|
64 |
|
65 // Constructor |
|
66 TSendArrayItem( const TDesC8& aPacket, TRequestStatus& aStatus ) : |
|
67 iPacket(aPacket), |
|
68 iStatus( aStatus ) |
|
69 { |
|
70 } |
|
71 |
|
72 |
|
73 public: // Data |
|
74 const TDesC8& iPacket; |
|
75 TRequestStatus& iStatus; |
|
76 }; |
|
77 */ |
|
78 #endif // RtpCommDef_H |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |