|
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: STP (Streaming Transport Protocol) header of RTP packet |
|
15 * : to send/receive. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 #ifndef __RTPSTPHEADER_H |
|
23 #define __RTPSTPHEADER_H |
|
24 |
|
25 // INCLUDES |
|
26 #include <rtpdef.h> |
|
27 |
|
28 // CONSTANTS |
|
29 |
|
30 // MACROS |
|
31 |
|
32 // DATA TYPES |
|
33 |
|
34 // FUNCTION PROTOTYPES |
|
35 |
|
36 // FORWARD DECLARATIONS |
|
37 |
|
38 |
|
39 // CLASS DECLARATION |
|
40 |
|
41 /** |
|
42 * STP (Streaming Transport Protocol) common parts of RTP packet headers. |
|
43 * |
|
44 * @lib RtpStpPacket.dll |
|
45 */ |
|
46 class TRtpHeader |
|
47 { |
|
48 public: // Header fields |
|
49 TRtpHeader(); |
|
50 TUint8 iMarker; // Marker (M) (1 bit) |
|
51 TUint8 iPadding; // Padding (P) (1 bit) |
|
52 TUint8 iChecksumInd; // Checksum indication (C) (1 bit) |
|
53 TUint8 iSpeechItemToggle; // Speech item toggle indication (S) (1 bit) |
|
54 TUint8 iPayloadType; // Payload type (PT) (3 bits) |
|
55 TUint8 iSeqNum; // Sequence number (8 bits) |
|
56 TUint16 iChecksum; // Checksum (16 bits) |
|
57 }; |
|
58 |
|
59 inline TRtpHeader::TRtpHeader() |
|
60 : iMarker( 0 ), |
|
61 iPadding( 0 ), |
|
62 iChecksumInd( 0 ), |
|
63 iSpeechItemToggle( 0 ), |
|
64 iPayloadType( 0 ), |
|
65 iSeqNum( 0 ), |
|
66 iChecksum( 0 ) |
|
67 { |
|
68 }; |
|
69 |
|
70 /** |
|
71 * STP (Streaming Transport Protocol) header of RTP packet to send. |
|
72 * |
|
73 * @lib RtpStpPacket.dll |
|
74 */ |
|
75 class TRtpSendHeader : public TRtpHeader |
|
76 { |
|
77 }; |
|
78 |
|
79 /** |
|
80 * STP (Streaming Transport Protocol) header of RTP packet to receive. |
|
81 * |
|
82 * @lib RtpStpPacket.dll |
|
83 */ |
|
84 class TRtpRecvHeader : public TRtpHeader |
|
85 { |
|
86 }; |
|
87 |
|
88 #endif // __RTPSTPHEADER_H |
|
89 |
|
90 // End of File |