If users want to create and send arbitrary data, this example demonstrates how to use data interactions to encode and decode your information.
#include <iostream>
{
std::cout << "SetData Interaction from "
{
}
for (
int field = 1; field <= inter->
numVarFields(); field++ )
{
}
}
int main( int argc, char* argv[] )
{
try
{
#if DtDIS
appInit.setUseAsynchIO(true);
#endif
appInit.parseCmdLine();
while (simTime <= 60.0)
{
simTime += dt;
}
}
return 0;
}