OLD | NEW |
---|---|
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
71 kRTCDataChannelStateClosed | 71 kRTCDataChannelStateClosed |
72 } RTCDataChannelState; | 72 } RTCDataChannelState; |
73 | 73 |
74 @class RTCDataChannel; | 74 @class RTCDataChannel; |
75 // Protocol for receving data channel state and message events. | 75 // Protocol for receving data channel state and message events. |
76 @protocol RTCDataChannelDelegate<NSObject> | 76 @protocol RTCDataChannelDelegate<NSObject> |
77 | 77 |
78 // Called when the data channel state has changed. | 78 // Called when the data channel state has changed. |
79 - (void)channelDidChangeState:(RTCDataChannel*)channel; | 79 - (void)channelDidChangeState:(RTCDataChannel*)channel; |
80 | 80 |
81 // Called when the data channel state has changed. | |
82 - (void)channelDidChangeBufferedAmount:(RTCDataChannel*)channel | |
tkchin_webrtc
2015/06/29 22:18:30
Update comment?
Style:
- (void)channel:(RTCDataCha
bemasc2
2015/06/29 22:53:17
Done.
| |
83 previousAmount:(NSUInteger)amount; | |
84 | |
81 // Called when a data buffer was successfully received. | 85 // Called when a data buffer was successfully received. |
82 - (void)channel:(RTCDataChannel*)channel | 86 - (void)channel:(RTCDataChannel*)channel |
83 didReceiveMessageWithBuffer:(RTCDataBuffer*)buffer; | 87 didReceiveMessageWithBuffer:(RTCDataBuffer*)buffer; |
84 | 88 |
85 @end | 89 @end |
86 | 90 |
87 // ObjectiveC wrapper for a DataChannel object. | 91 // ObjectiveC wrapper for a DataChannel object. |
88 // See talk/app/webrtc/datachannelinterface.h | 92 // See talk/app/webrtc/datachannelinterface.h |
89 @interface RTCDataChannel : NSObject | 93 @interface RTCDataChannel : NSObject |
90 | 94 |
(...skipping 12 matching lines...) Expand all Loading... | |
103 - (void)close; | 107 - (void)close; |
104 - (BOOL)sendData:(RTCDataBuffer*)data; | 108 - (BOOL)sendData:(RTCDataBuffer*)data; |
105 | 109 |
106 #ifndef DOXYGEN_SHOULD_SKIP_THIS | 110 #ifndef DOXYGEN_SHOULD_SKIP_THIS |
107 // Disallow init and don't add to documentation | 111 // Disallow init and don't add to documentation |
108 - (id)init __attribute__(( | 112 - (id)init __attribute__(( |
109 unavailable("init is not a supported initializer for this class."))); | 113 unavailable("init is not a supported initializer for this class."))); |
110 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ | 114 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
111 | 115 |
112 @end | 116 @end |
OLD | NEW |