Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - tbone

Pages: [1]
1
Network / Packet Endian Conversions
« on: May 23, 2010, 07:21:46 pm »
I agree with you 100% that there are issues with how floating point numbers are represented on each platform.  But if we agree that all we can do is hope that the translation is correct don't we still need to perform byte swapping based on the little or big endian conventions?  I've had to do this with an SDF file format previously and it worked out fine.

2
Network / Packet Endian Conversions
« on: May 23, 2010, 06:31:19 am »
I've just found this library (SFML 1.6) and in particular would like to use some of the networking classes.  I noticed that in the packet class all of the integer types are corrected for Endian issues using ntohl/htonl and friends but none of the floating point types are.  Is this an oversight?

P.S.  I really like the Packet abstraction it feels very natural and is easily extended.  When I first saw it I had this feeling of WOW this is what I've been looking for!

Pages: [1]
anything