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.
CaHarvest
LPCTSTR szBrokerName—The name of the CA Harvest SCM Broker.
Returns zero if success, nonzero if failure.
Example
CaHarvest Harvest; if(Harvest.SetBroker(“CMBroker”) throw CaException(false, “Cannot connect to the broker.”);
More information:
| Copyright © 2013 CA. All rights reserved. |
|