To enable your client application to connect through a relay server, you must make manual configuration changes in the object API code to provide the relay server properties.
If a Relay Server is used, the ‘companyID’ in the SUPApplication property must correspond to the MBS farm ID that is used for the messaging client connection.
SUPConnectionProperties props = app.connectionProperties; [props setFarmId:@"relayServer1"];
For data synchronization through a relay server:
SUPConnectionProfile *sp = [SUP101SUP101DB getSynchronizationProfile]; [sp setNetworkProtocol:@"https"]; // or http [sp setPortNumber:443]; // if http then corresponding port [sp setNetworkStreamParams:@"trusted_certificates=certificateName;compression=zlib;url_suffix=urlsuffixProvidedByTheRelayServer"];
For more information on Relay Server configuration, see System Administration and Sybase Control Center for Sybase Unwired Platform.