title: C/C++ Endianness and tcp sockets
body: <p>I have a general conceptual question about endianness and how it affects tcp socket communication with C/C++.  Here's an example:</p>
  
  <p>You have two servers that are communicating with tcp sockets and one uses big endian and the other little endian.  If you send an integer, over the socket, from one server to the other, I understand that the byte ordering is reversed and the integer will not print what is expected.  Correct?  I saw somewhere (I can't find where anymore) that if you send a char over the socket endianness doesn't change the value and it prints as expected.  Is this correct?  If so, why?  I feel like I've done this before in the past, but I could be delusional.</p>
  
  <p>Could anybody clear this up for me?</p>
  
  <p>Thanks.</p>
  
  <p>Edit: Is it because char is only 1 byte?</p>