I would like to ask about the problems I'm going to get when I transfer strings from one computer to another with different endianness.
I'm reading the data transferred into a std::deque<char>, and then parse it to std::string.
I can imagine that if my computer is LE (little endian) and the computer on the other hand is BE (big endian), then all I have to do is reverse the order of the bytes in total before queuing them and parsing them.
What about PDP endianness? can it be fixed?
Or is this whole idea of fixing wrong because endianness doesn't matter when I transfer a series of 1-byte chars?