title: Sending struct over TCP (C-programming)
body: <p>I have a client and server program where I want to send an entire struct from the client and then output the struct member "ID" on the server.</p>
  
  <p>I have done all the connecting etc and already managed to send a string through:</p>
  
  <pre><code>send(socket, string, string_size, 0);
  </code></pre>
  
  <p>So, is it possible to send a struct instead of a string through send()? Can I just replace my buffer on the server to be an empty struct of the same type and go?</p>