Inherits from NSObject
Declared in WSCIceServer.h

Overview

WSCIceServer representation holding URL, username and password for an ICE server.

The allowed formats for the url string are:
“TYPE:203.0.113.2:3478” - Indicates a specific IP address and port for the server.
“TYPE:relay.example.net:3478” - Indicates a specific host and port for the server; the user agent will look up the IP address in DNS.
“TYPE:example.net” - Indicates a specific domain for the server; the user agent will look up the IP address and port in DNS.

The “TYPE” is one of:

  • STUN - Indicates a STUN server
  • STUNS - Indicates a STUN server that is to be contacted using a TLS session.
  • TURN - Indicates a TURN server
  • TURNS - Indicates a TURN server that is to be contacted using a TLS session.

Properties

password

Password for the ICE Server.

@property (nonatomic, copy, readonly) NSString *password

Discussion

Password for the ICE Server.

Declared In

WSCIceServer.h

url

URL of ICE Server. For example, “turn:10.111.12.13:3478”.

@property (nonatomic, copy, readonly) NSString *url

Discussion

URL of ICE Server. For example, “turn:10.111.12.13:3478”.

Declared In

WSCIceServer.h

username

Username for the ICE Server.

@property (nonatomic, copy, readonly) NSString *username

Discussion

Username for the ICE Server.

Declared In

WSCIceServer.h

Instance Methods

init

Disallow init.

- (instancetype)init

Discussion

Disallow init.

Declared In

WSCIceServer.h

initWithUrl:

Returns an initialized WSCCall object URL.

- (instancetype)initWithUrl:(NSString *)url

Parameters

url

ICE Server URL.

Discussion

Returns an initialized WSCCall object URL.

Declared In

WSCIceServer.h

initWithUrl:username:password:

Returns an initialized WSCCall object with URL, username, and password.

- (instancetype)initWithUrl:(NSString *)url username:(NSString *)username password:(NSString *)password

Parameters

url

ICE server URL.

username

ICE server username.

password

ICE server password.

Discussion

Returns an initialized WSCCall object with URL, username, and password.

Declared In

WSCIceServer.h