Previous Topic: CaString GetHSDKRelease(void)

Next Topic: HINT32 Login(LPCTSTR szBrokerName, LPCTSTR szUserName, LPCTSTR szPassword)


HINT32 SetBroker(LPCTSTR szBrokerName)

Connects to the CA Harvest SCM broker.

Note: SetBroker method must be called once after the CaHarvest object is created. It will establish a connection to the RTserver where the broker connects to. In multithreaded application, it must be called once in the main thread and the same connection will be used by all child threads.

Owning Class

CaHarvest

Arguments

LPCTSTR szBrokerName—The name of the CA Harvest SCM Broker.

Return Value

Returns zero if success, nonzero if failure.

Example

CaHarvest Harvest;
if(Harvest.SetBroker(“CMBroker”) throw CaException(false, “Cannot connect to the broker.”);

More information: