\Generic Networking Example directory in the repository contains an example project with three modules:
GenNet-Proxy module is a DQMH Singleton module altered to allow for (near) zero-coupled networking functionality.
GenNet-Proxy.lvlibrunning in another application and/or another PC accessible via TCP/IP.
GenNet-Proxy.lvlibrunning in another application and/or on another PC via TCP/IP communication.
GenNet-RoundTrip module is like the
GenNet-Proxy module, but with a new feature for sending DQMH Round Trip events over the network. The normal Round Trip event also includes a DQMH broadcast, but this broadcast will only be fired locally. With the new feature, the normal broadcast will be encapsulated in a generic broadcast and the remote side can identify it. The
GenNet-RoundTrip module showcases the concrete implementation.
RemoteControl module showcases the manual use of the
GenNet-Server modules, and how any generic DQMH module can make use of the generic networking functions, albeit not transparently to the user. The message that's sent via the network needs to be constructed manually, and in a way that the opposite site can decode it.
\Generic Networking Example\Generic Networking Example.lvprojfile
Test GenNet-Proxy API.viTester, start the module and Enable Network Listening
Test RemoteControl API.viTester, start the module and Open GenNet Connection
Now, you have a network connection between the two modules.
Test RemoteControl API.viTester, it will actually call the Do something with answer request of the
Test GenNet-Proxy API.viTester and see how the result in the
Test RemoteControl API.viTester changes when you call Send Message via GenNet again.