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; | |
nisse-webrtc
2017/02/17 14:49:04
It would have been appropriate with a TODO saying
| |
282 | |
281 // Time corresponding to when this object was created. | 283 // Time corresponding to when this object was created. |
282 int64_t creation_time_ms; | 284 int64_t creation_time_ms; |
283 // Time corresponding to when the packet was received. Timestamped with the | 285 // Time corresponding to when the packet was received. Timestamped with the |
284 // receiver's clock. | 286 // receiver's clock. |
285 int64_t arrival_time_ms; | 287 int64_t arrival_time_ms; |
286 // Time corresponding to when the packet was sent, timestamped with the | 288 // Time corresponding to when the packet was sent, timestamped with the |
287 // sender's clock. | 289 // sender's clock. |
288 int64_t send_time_ms; | 290 int64_t send_time_ms; |
289 // Packet identifier, incremented with 1 for every packet generated by the | 291 // Packet identifier, incremented with 1 for every packet generated by the |
290 // sender. | 292 // sender. |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
393 class TransportSequenceNumberAllocator { | 395 class TransportSequenceNumberAllocator { |
394 public: | 396 public: |
395 TransportSequenceNumberAllocator() {} | 397 TransportSequenceNumberAllocator() {} |
396 virtual ~TransportSequenceNumberAllocator() {} | 398 virtual ~TransportSequenceNumberAllocator() {} |
397 | 399 |
398 virtual uint16_t AllocateSequenceNumber() = 0; | 400 virtual uint16_t AllocateSequenceNumber() = 0; |
399 }; | 401 }; |
400 | 402 |
401 } // namespace webrtc | 403 } // namespace webrtc |
402 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ | 404 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ |
OLD | NEW |