RTCIceCandidateErrorEvent.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Copyright (c) 2021 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 <Foundation/Foundation.h>
  11. #import <WebRTC/RTCMacros.h>
  12. NS_ASSUME_NONNULL_BEGIN
  13. RTC_OBJC_EXPORT
  14. @interface RTC_OBJC_TYPE (RTCIceCandidateErrorEvent) : NSObject
  15. /** The local IP address used to communicate with the STUN or TURN server. */
  16. @property(nonatomic, readonly) NSString *address;
  17. /** The port used to communicate with the STUN or TURN server. */
  18. @property(nonatomic, readonly) int port;
  19. /** The STUN or TURN URL that identifies the STUN or TURN server for which the failure occurred. */
  20. @property(nonatomic, readonly) NSString *url;
  21. /** The numeric STUN error code returned by the STUN or TURN server. If no host candidate can reach
  22. * the server, errorCode will be set to the value 701 which is outside the STUN error code range.
  23. * This error is only fired once per server URL while in the RTCIceGatheringState of "gathering". */
  24. @property(nonatomic, readonly) int errorCode;
  25. /** The STUN reason text returned by the STUN or TURN server. If the server could not be reached,
  26. * errorText will be set to an implementation-specific value providing details about the error. */
  27. @property(nonatomic, readonly) NSString *errorText;
  28. - (instancetype)init NS_DESIGNATED_INITIALIZER;
  29. @end
  30. NS_ASSUME_NONNULL_END