The acquisition data module uses Socket communication. The client uses ClientSocket, the server side is served with Serversocket. The following figure is the initial concept of achieving.
Implementation Method: The client sends data to the server side, the server side passes the DLL of the COM by configuring and a processing module - processing module, implementing the plug-in management - association, processing module, processing data received by the server, Then return to the server side, finally, the server is sent to the client. Complete a data processing. The processing module can save some data for other processing, such as: comparing the size of a certain data acquired twice, and the like.
Connect the database intermediate layer function: Data and databases sent by the module perform data exchange. My preliminary idea is that the processing module is responsible for processing the data of the acquisition, it doesn't care, nor does it want to know the structure of the database. It will notify the intermediate layer of the connection database to process, and then, after the intermediate layer is processed, the necessary data gives the processing module. Here, under the concept, I hope that the intermediate layer is a DLL (or other suitable mode) providing an interface for processing module call.
The above is my idea, and the implementation part will be written in the following.