Programmers Reference - Data Requests
Data Requests.
When a client wants data from the ConSys System, the client requests data through a data request. the basic data request (se CDataRequest) has no real functionality, and must be overwritten by subclasses. There is three important parts of information in the basic data request. The first information is the destination of the request. This information is contained in the CAddress* entry. The address class must mach type of request. The address entry may also be NULL. This means that the request is destined to be handled at the local machine kernel. The second, and third entry in the request, gives information on which data server to load for handling the request (se CDataServer). When the data server is loaded, the request itself is passed on to the data server. The data server may now want to extract extra information out of the data request, just want to use the address.
The decision to split the address information from the information on how to handle the request, is made to make the system more flexible. It is now possible to different kinds of data servers working on the same address. One kind of data server may want to test the parameter at the address for a specific condition before transmitting data to the client. another possibility is to have a request and a data server that does not directly access devisees, but groups data together into packets (se CPacketServer).
References:
CDataRequest
Last Modified 11 January 2019