| 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 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 | 920 |
| 921 // RTCP mode to use. Compound mode is described by RFC 4585 and reduced-size | 921 // RTCP mode to use. Compound mode is described by RFC 4585 and reduced-size |
| 922 // RTCP mode is described by RFC 5506. | 922 // RTCP mode is described by RFC 5506. |
| 923 enum class RtcpMode { kOff, kCompound, kReducedSize }; | 923 enum class RtcpMode { kOff, kCompound, kReducedSize }; |
| 924 | 924 |
| 925 enum NetworkState { | 925 enum NetworkState { |
| 926 kNetworkUp, | 926 kNetworkUp, |
| 927 kNetworkDown, | 927 kNetworkDown, |
| 928 }; | 928 }; |
| 929 | 929 |
| 930 struct RtpKeepAliveConfig { | 930 struct RtpKeepAliveConfig final { |
| 931 // If no packet has been sent for |timeout_interval_ms|, send a keep-alive | 931 // If no packet has been sent for |timeout_interval_ms|, send a keep-alive |
| 932 // packet. The keep-alive packet is an empty (no payload) RTP packet with a | 932 // packet. The keep-alive packet is an empty (no payload) RTP packet with a |
| 933 // payload type of 20 as long as the other end has not negotiated the use of | 933 // payload type of 20 as long as the other end has not negotiated the use of |
| 934 // this value. If this value has already been negotiated, then some other | 934 // this value. If this value has already been negotiated, then some other |
| 935 // unused static payload type from table 5 of RFC 3551 shall be used and set | 935 // unused static payload type from table 5 of RFC 3551 shall be used and set |
| 936 // in |payload_type|. | 936 // in |payload_type|. |
| 937 int64_t timeout_interval_ms = -1; | 937 int64_t timeout_interval_ms = -1; |
| 938 uint8_t payload_type = 20; | 938 uint8_t payload_type = 20; |
| 939 |
| 940 bool operator==(const RtpKeepAliveConfig& o) const { |
| 941 return timeout_interval_ms == o.timeout_interval_ms && |
| 942 payload_type == o.payload_type; |
| 943 } |
| 944 bool operator!=(const RtpKeepAliveConfig& o) const { return !(*this == o); } |
| 939 }; | 945 }; |
| 940 | 946 |
| 941 } // namespace webrtc | 947 } // namespace webrtc |
| 942 | 948 |
| 943 #endif // WEBRTC_COMMON_TYPES_H_ | 949 #endif // WEBRTC_COMMON_TYPES_H_ |
| OLD | NEW |