RTCDataChannelConfiguration.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Copyright 2015 The WebRTC project authors. All Rights Reserved.
  3. *
  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
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #import <AvailabilityMacros.h>
  11. #import <Foundation/Foundation.h>
  12. #import "RTCMacros.h"
  13. NS_ASSUME_NONNULL_BEGIN
  14. RTC_OBJC_EXPORT
  15. @interface RTC_OBJC_TYPE (RTCDataChannelConfiguration) : NSObject
  16. /** Set to YES if ordered delivery is required. */
  17. @property(nonatomic, assign) BOOL isOrdered;
  18. /** Deprecated. Use maxPacketLifeTime. */
  19. @property(nonatomic, assign) NSInteger maxRetransmitTimeMs DEPRECATED_ATTRIBUTE;
  20. /**
  21. * Max period in milliseconds in which retransmissions will be sent. After this
  22. * time, no more retransmissions will be sent. -1 if unset.
  23. */
  24. @property(nonatomic, assign) int maxPacketLifeTime;
  25. /** The max number of retransmissions. -1 if unset. */
  26. @property(nonatomic, assign) int maxRetransmits;
  27. /** Set to YES if the channel has been externally negotiated and we do not send
  28. * an in-band signalling in the form of an "open" message.
  29. */
  30. @property(nonatomic, assign) BOOL isNegotiated;
  31. /** Deprecated. Use channelId. */
  32. @property(nonatomic, assign) int streamId DEPRECATED_ATTRIBUTE;
  33. /** The id of the data channel. */
  34. @property(nonatomic, assign) int channelId;
  35. /** Set by the application and opaque to the WebRTC implementation. */
  36. @property(nonatomic) NSString* protocol;
  37. @end
  38. NS_ASSUME_NONNULL_END