Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
23 RTCP is a protocol that only makes sense in the context of RTP, so
24 the RTCP implementation is an extension of the RTP code, and most
25 of the relevant classes are defined in rtp.h
36 A handle to an RR (Receiver Report) RTP packet.
38 An instance of this class represents the reception report of one host
39 about another host; it may have come from either a SR (Sender Report) or
40 a RR (Receiver Report) packet, which may contain
41 other RRs (Receiver Reports) as well.
43 An object of this type is returned from a call to the RRtcpRRPart
44 indexing operator and specifying the index of the required RR.
46 Note that resources accessed thorugh this handle are owned by other objects
47 and therefore has no Close() member function.
57 IMPORT_C RRtcpRRItem();
60 Gets the sender's SSRC, i.e. the sender's 32-bit numeric
61 synchronisation source identifier.
63 @return The sender's SSRC.
65 IMPORT_C TUint SenderSSRC() const;
69 Gets the number of packets lost.
71 @return The number of packets lost.
73 IMPORT_C TUint PacketsLost() const;
77 Gets the SSRC related to this packet.
79 @return The sender's SSRC.
81 IMPORT_C TUint AboutSSRC() const;
85 Gets the number of packets lost, in 256ths of the total number.
87 @return The number of last packets, in 256ths of the total number.
89 IMPORT_C TUint FractionLost() const;
93 Gets the extended highest sequence number recieved.
95 @return The extended highest sequence number.
97 IMPORT_C TUint ExtendedHighestSequenceNumber() const;
101 Gets the interarrival jitter value.
103 @return The interarrival jitter value.
106 IMPORT_C TUint InterarrivalJitter() const;
110 Gets the time of the last received SR (Sender Report)
112 @return The time of the last received SR.
114 IMPORT_C TUint LastSRTimestamp() const;
118 Gets the time between the receipt of the last SR (Sender Report) and
119 the time when this packet was sent.
121 @return The tme difference in 65,536ths of a second.
123 IMPORT_C TUint DelaySinceLastSR() const;
126 friend class RRtcpRRPart;
134 An array containing the most recent RRs (Receiver Reports) from
135 all hosts who are reporting on our send stream.
137 An object of this type is returned by calling RRs() on a handle to
138 an RTP session (an RRtpSession object).
140 @see RRtpSession::RRs()
145 IMPORT_C RRtcpRRPart(TRtcpRRPart& aRR);
147 Gets the number of Receiver Reports.
149 @return The number fo receiver reports.
151 IMPORT_C TInt Count() const;
153 IMPORT_C TUint SenderSSRC() const;
156 Gets a specific RR (Receiver Report) as identified by
157 the specified index value.
159 @param aIndex An index value identifying the specific RR.
160 The index is relative to zero, i.e. zero implies
162 The value must not be negative and must be less than
163 the the value returned by Count().
165 @return A handle to the RR (Receiver Report).
167 IMPORT_C RRtcpRRItem operator [](TInt aIndex) const;
169 TRtcpRRPart& iRRPart;
176 A handle to a SR (Sender Report) packet.
178 RRs (Receiver Reports) received as part of a SR (Sender Report) are classified
179 with the RRs. The resources accessed through this handle are owned by
180 the receive stream object, a RRtpReceiveStream instance, and therefore has no
181 Close() member function.
189 IMPORT_C RRtcpSRPart(TRtcpSRPart& aSr);
193 Gets the absolute time when this SR was sent, in TTime format.
195 @return The time in NTP format.
197 IMPORT_C void NTPTimestamp(TTime& aTime) const;
201 Gets the RTP time when this packet was sent.
203 Note that RTP time is profile dependant and may have an arbitrary start
204 time, but this is useful for tying the SR with the timestamps in the
207 @return The time when the packet was sent.
209 IMPORT_C TUint RTPTimestamp() const;
213 Gets the number of packets that have been sent.
215 @return The number of packets.
217 IMPORT_C TUint PacketCount() const;
221 Gets the number of bytes that have been sent.
223 @return The number of bytes sent.
225 IMPORT_C TUint ByteCount() const;
229 Gets the profile-specific extension.
231 @return An un-modifiable descriptor reference to the extension data.
233 IMPORT_C const TDesC8& Extension();
236 // added as Fix to Defect PDEF101761
237 Gets the timestamp when this SR was sent, in seconds and fraction
239 @ return The time in Seconds and Fraction
241 IMPORT_C void NTPTimestamp(TUint32& aSec,TUint32& aFrac) const;