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