OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 uint16_t sequence_number, | 271 uint16_t sequence_number, |
272 size_t payload_size, | 272 size_t payload_size, |
273 int probe_cluster_id) | 273 int probe_cluster_id) |
274 : creation_time_ms(creation_time_ms), | 274 : creation_time_ms(creation_time_ms), |
275 arrival_time_ms(arrival_time_ms), | 275 arrival_time_ms(arrival_time_ms), |
276 send_time_ms(send_time_ms), | 276 send_time_ms(send_time_ms), |
277 sequence_number(sequence_number), | 277 sequence_number(sequence_number), |
278 payload_size(payload_size), | 278 payload_size(payload_size), |
279 probe_cluster_id(probe_cluster_id) {} | 279 probe_cluster_id(probe_cluster_id) {} |
280 | 280 |
281 static constexpr int kNotAProbe = -1; | |
282 | |
283 // Time corresponding to when this object was created. | 281 // Time corresponding to when this object was created. |
284 int64_t creation_time_ms; | 282 int64_t creation_time_ms; |
285 // Time corresponding to when the packet was received. Timestamped with the | 283 // Time corresponding to when the packet was received. Timestamped with the |
286 // receiver's clock. | 284 // receiver's clock. |
287 int64_t arrival_time_ms; | 285 int64_t arrival_time_ms; |
288 // Time corresponding to when the packet was sent, timestamped with the | 286 // Time corresponding to when the packet was sent, timestamped with the |
289 // sender's clock. | 287 // sender's clock. |
290 int64_t send_time_ms; | 288 int64_t send_time_ms; |
291 // Packet identifier, incremented with 1 for every packet generated by the | 289 // Packet identifier, incremented with 1 for every packet generated by the |
292 // sender. | 290 // sender. |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 class TransportSequenceNumberAllocator { | 393 class TransportSequenceNumberAllocator { |
396 public: | 394 public: |
397 TransportSequenceNumberAllocator() {} | 395 TransportSequenceNumberAllocator() {} |
398 virtual ~TransportSequenceNumberAllocator() {} | 396 virtual ~TransportSequenceNumberAllocator() {} |
399 | 397 |
400 virtual uint16_t AllocateSequenceNumber() = 0; | 398 virtual uint16_t AllocateSequenceNumber() = 0; |
401 }; | 399 }; |
402 | 400 |
403 } // namespace webrtc | 401 } // namespace webrtc |
404 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ | 402 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ |
OLD | NEW |