setConnectionProfileWithUrl: method

Provides connection properties to the connection class before registration.

Syntax

- ( BOOL ) setConnectionProfileWithUrl : ( NSString * ) hostPort

Parameters

Returns

Returns a BOOL indicating if the operation is successful or not.

Example 1

SMPClientConnection* clientConn = [SMPClientConnection initializeWithAppID:"application ID" domain:@"domain" secConfiguration:@"secconfig"];
[clientConn setConnectionProfileWithUrl:@"http://supServerHost:supServerPort"];


In case of relay server 
[clientConn setConnectionProfileWithUrl:"http://relayServerHost:relayServerPort/relay_server_url_suffix/farmId"];