FREEDM-DGI / FREEDM

The distributed grid intelligence manages power transactions and attached physical devices.
http://www.freedm.ncsu.edu/
17 stars 18 forks source link

Message hashes are architecture-dependent #358

Closed mcatanzaro closed 10 years ago

mcatanzaro commented 10 years ago

boost::hash is intended for use in STL containers. It's architecture-dependent (the result is a std::size_t). I imagine this would make it impossible for the TS-7800 to ever ACK a message from a real computer (but have not confirmed this).

scj7t4 commented 10 years ago

Not an issue.

Hashes are generated by the sender. ACKs include the hash sent by the sender. It doesn't matter what the architecture is as long as the type is consistent. Update incoming for related bug in protobuf.