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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 // ************************************************************************** | 112 // ************************************************************************** |
113 // Sender | 113 // Sender |
114 // ************************************************************************** | 114 // ************************************************************************** |
115 | 115 |
116 // Sets MTU. | 116 // Sets MTU. |
117 // |size| - Max transfer unit in bytes, default is 1500. | 117 // |size| - Max transfer unit in bytes, default is 1500. |
118 // Returns -1 on failure else 0. | 118 // Returns -1 on failure else 0. |
119 virtual int32_t SetMaxTransferUnit(uint16_t size) = 0; | 119 virtual int32_t SetMaxTransferUnit(uint16_t size) = 0; |
120 | 120 |
121 // Sets transtport overhead. Default is IPv4 and UDP with no encryption. | 121 // Sets transport overhead. Default is IPv4 and UDP with no encryption. |
122 // |tcp| - true for TCP false UDP. | 122 // |tcp| - true for TCP false UDP. |
123 // |ipv6| - true for IP version 6 false for version 4. | 123 // |ipv6| - true for IP version 6 false for version 4. |
124 // |authentication_overhead| - number of bytes to leave for an authentication | 124 // |authentication_overhead| - number of bytes to leave for an authentication |
125 // header. | 125 // header. |
126 // Returns -1 on failure else 0 | 126 // Returns -1 on failure else 0 |
127 // TODO(michaelt): deprecate the function. | 127 // TODO(michaelt): deprecate the function. |
128 virtual int32_t SetTransportOverhead(bool tcp, | 128 virtual int32_t SetTransportOverhead(bool tcp, |
129 bool ipv6, | 129 bool ipv6, |
130 uint8_t authentication_overhead = 0) = 0; | 130 uint8_t authentication_overhead = 0) = 0; |
131 | 131 |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 virtual int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) = 0; | 477 virtual int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) = 0; |
478 | 478 |
479 // Sends a request for a keyframe. | 479 // Sends a request for a keyframe. |
480 // Returns -1 on failure else 0. | 480 // Returns -1 on failure else 0. |
481 virtual int32_t RequestKeyFrame() = 0; | 481 virtual int32_t RequestKeyFrame() = 0; |
482 }; | 482 }; |
483 | 483 |
484 } // namespace webrtc | 484 } // namespace webrtc |
485 | 485 |
486 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ | 486 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ |
OLD | NEW |