| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 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 28 matching lines...) Expand all Loading... |
| 39 - (void)dataChannelDidChangeState:(RTCDataChannel *)dataChannel; | 39 - (void)dataChannelDidChangeState:(RTCDataChannel *)dataChannel; |
| 40 | 40 |
| 41 /** The data channel successfully received a data buffer. */ | 41 /** The data channel successfully received a data buffer. */ |
| 42 - (void)dataChannel:(RTCDataChannel *)dataChannel | 42 - (void)dataChannel:(RTCDataChannel *)dataChannel |
| 43 didReceiveMessageWithBuffer:(RTCDataBuffer *)buffer; | 43 didReceiveMessageWithBuffer:(RTCDataBuffer *)buffer; |
| 44 | 44 |
| 45 @optional | 45 @optional |
| 46 | 46 |
| 47 /** The data channel's |bufferedAmount| changed. */ | 47 /** The data channel's |bufferedAmount| changed. */ |
| 48 - (void)dataChannel:(RTCDataChannel *)dataChannel | 48 - (void)dataChannel:(RTCDataChannel *)dataChannel |
| 49 didChangeBufferedAmount:(NSUInteger)amount; | 49 didChangeBufferedAmount:(uint64_t)amount; |
| 50 | 50 |
| 51 @end | 51 @end |
| 52 | 52 |
| 53 | 53 |
| 54 /** Represents the state of the data channel. */ | 54 /** Represents the state of the data channel. */ |
| 55 typedef NS_ENUM(NSInteger, RTCDataChannelState) { | 55 typedef NS_ENUM(NSInteger, RTCDataChannelState) { |
| 56 RTCDataChannelStateConnecting, | 56 RTCDataChannelStateConnecting, |
| 57 RTCDataChannelStateOpen, | 57 RTCDataChannelStateOpen, |
| 58 RTCDataChannelStateClosing, | 58 RTCDataChannelStateClosing, |
| 59 RTCDataChannelStateClosed, | 59 RTCDataChannelStateClosed, |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 /** Closes the data channel. */ | 112 /** Closes the data channel. */ |
| 113 - (void)close; | 113 - (void)close; |
| 114 | 114 |
| 115 /** Attempt to send |data| on this data channel's underlying data transport. */ | 115 /** Attempt to send |data| on this data channel's underlying data transport. */ |
| 116 - (BOOL)sendData:(RTCDataBuffer *)data; | 116 - (BOOL)sendData:(RTCDataBuffer *)data; |
| 117 | 117 |
| 118 @end | 118 @end |
| 119 | 119 |
| 120 NS_ASSUME_NONNULL_END | 120 NS_ASSUME_NONNULL_END |
| OLD | NEW |