Changeset 451 in flair-src for trunk


Ignore:
Timestamp:
Sep 23, 2021, 6:22:08 PM (3 years ago)
Author:
Sanahuja Guillaume
Message:

up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/VrpnLite/src/VrpnLite.cpp

    r450 r451  
    141141      }
    142142     
     143      //do not handle empty connections
     144      //todo: remove empty connections
     145      if(connections.at(i).vrpnobjects.size()==0) continue;
     146     
    143147      char datas[connections.at(i).vrpnobjects.size()*(sizeof(position)+sizeof(quaternion))+ sizeof(time)];
    144148      char *datasPtr=datas;
     
    147151        Quaternion objectQuaternion;
    148152        const VrpnObject* vrpnobject=*it;
    149 //printf("send to %s client %i\n",vrpnobject->ObjectName().c_str(),connections.at(i).srcId);
     153//printf("%lld send to %s client %i size %i\n",GetTime()/1000000,vrpnobject->ObjectName().c_str(),connections.at(i).srcId,sizeof(datas));
    150154        vrpnobject->GetPosition(objectPosition);
    151155        vrpnobject->GetQuaternion(objectQuaternion);
     
    171175      memcpy(datasPtr,&time, sizeof(time));//only one time for all VrpnObject; suppose it is the same!
    172176      dataSocket->SendMessage(datas,sizeof(datas),connections.at(i).srcId);
     177      //printf("%lld send client %i size %i\n",GetTime()/1000000,connections.at(i).srcId,sizeof(datas));
     178 
    173179  }
    174180}
Note: See TracChangeset for help on using the changeset viewer.