After establishing a connection between the UI and Engine sides of your component, you are ready to send messages to each other. The function for sending messages is HostCommunicationsInterface.CommsSend and it takes a connection pointer, buffer pointer and buffer length.
On the receiving end, the message makes its way to ComponentCommunicationsInterface.CommsRecv.
WinGate offers flexibility in how you synchronise configuration changes between Engine and UI components, however the following method is the standard adopted by QBik:
- User changes configuration information
- UI module sends changes to WinGate engine using CommsSend.
- WinGate engine persists changes and broadcasts them out to all connected WMCs calling CommsSend. Even to the original one that sent the changes in the first place.
- WMCs receive configuration change messages and update their internal state.