Serialized collision cross machine safety

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Serialized collision cross machine safety

Postby PJani » Sun Jun 22, 2014 7:45 am

I was wondering if serialized collision bodies are safe(big/small endian and stuff) to be sent over the network to other machines?
| i7-5930k@4.2Ghz, EVGA 980Ti FTW, 32GB RAM@3000 |
| Dell XPS 13 9370, i7-8550U, 16GB RAM |
| Ogre 1.7.4 | VC++ 9 | custom OgreNewt, Newton 300 |
| C/C++, C# |
User avatar
PJani
 
Posts: 448
Joined: Mon Feb 02, 2009 7:18 pm
Location: Slovenia

Re: Serialized collision cross machine safety

Postby Julio Jerez » Sun Jun 22, 2014 10:05 am

you need to handle that indianess with the serialize callback.
It is easy because all read and write are multiple of 4 bytes, so you just nee to iterates in step of four and revert the order of the four byte of data.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Serialized collision cross machine safety

Postby PJani » Sun Jun 22, 2014 11:25 am

Thnx :)
| i7-5930k@4.2Ghz, EVGA 980Ti FTW, 32GB RAM@3000 |
| Dell XPS 13 9370, i7-8550U, 16GB RAM |
| Ogre 1.7.4 | VC++ 9 | custom OgreNewt, Newton 300 |
| C/C++, C# |
User avatar
PJani
 
Posts: 448
Joined: Mon Feb 02, 2009 7:18 pm
Location: Slovenia

Re: Serialized collision cross machine safety

Postby datta500 » Wed Nov 12, 2014 6:40 am

you only have to handle that indianess with the serialize callback.
datta500
 


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests