Programmers Reference - CConSysClient (2)
CConSysClient::CConSysClient
CConSysClient(CDataRequest* aDataRequest, CConSysEnviroment* enviroment = NULL); Throws: CServerException CInsuficientRightsException CFileException*
The CDataRequest parameter must be defined, and different from NULL. The constructor takes control of the request, and is responsible for deleting the object. For handling a request, se CDataRequest for further information.
The second parameter CConSysEnviroment do not need to be specified. If the parameter is not specified, the constructor creates its own instance of the object. Because creating the environment object is a complicated operation (read slow), the caller of the constructor may chose to supply the environment variable on his/her own. When the environment is supplied, it is the callers responsibility that the pointer remains valid thought the entire lifetime of the CConSysClient object. The CConSysClient object does not destruct the environment object.
Data may start to arrive immediately upon return from the constructor (se NewData).
A exception may be thrown if the CConSysClient is unable to contact the ConSys System kernel. Please verify that the service is running on the computer.
References:
CDataRequest
Last Modified 10 January 2019