title: Sending Message Over Tcp/IP using Sockets
body: <p>I am trying to send data between a client/Server, the data looks like</p>
  
  <pre><code>typedef Struct Message 
    { int id;
      int message_length;
       char* message_str;
      }message;
  </code></pre>
  
  <p>I am trying to <code>Write</code> and <code>Read</code> this message between a client and server constantly updating the elements in this struct. I have heard <code>Writev</code> may do the trick. i want to send a
  message to the server and then the server pulls out the elements and uses those elements as conditionals to execute the proper method?</p>