Write a shared software and use plug-in development. The main purpose is to learn plug-in development models.
Name: Multi-function communication gateway
Function Description: Implement communication between two or N data channels.
Basic ideas:
The equipment is developed by modular development, each device corresponding to a DLL. The DLL provides the corresponding interface function to the main program.
Main program start, search the device module in the device directory, dynamically generate menu and interface.
Users are set to A channel, B channel, ....
The main program is received from A, sent to B. Receive data from B, send it to A.
You can choose one-way transmission, only if you don't send it, or you only don't receive it.
Commonly used equipment is generally serial port, TCP client, TCP server, UDP.
Adding parallel ports, USB ...
The advantage of this mode is to increase the device type at any time as needed, and do not need to modify the main program.
Similar to Linux pipelines.