![]() |
VR-Link API Documentation for DIS
|
Once we build the TestInteraction class, and outfit it with a TestEncoder and TestDecoder, we can use it in an application just like any other DtInteraction subclass.
In testInterMain.cxx, we create a TestInteraction, fill it out, and send it. We also register a callback on incoming TestInteractions, and print their contents using the virtual printData() function.
After you build the testInter example, run two copies of it. You should see them communicating with each other. Each should print TestInteractions received from the other.