title: TCP client failed to send string to server
body: <p>I am programming  TCP server client. I sending the three string seperately using seperate <code>send</code> system call.
  But receiving end i getting only single string that is first string which i send. remaining two string missed.</p>
  
  <p>Below i given the part of my server client program.</p>
  
  <p>client.c</p>
  
  <pre><code>char *info = "infolog";
  char *size = "filesize";
  char *end = "fileend";
  send(client, info, strlen(info)+1, 0);
  send(client, size, strlen(size)+1, 0);
  send(client, end, strlen(end)+1, 0);
  </code></pre>
  
  <p>server.c</p>
  
  <pre><code>while ((read_size = recv(client, msg, sizeof(msg), 0))) {
      printf("Data: %s\n", msg);
      memset(msg, 0, sizeof(msg));
  }
  </code></pre>
  
  <p>Actual output:</p>
  
  <pre><code>Data: infolog
  </code></pre>
  
  <p>Expected output</p>
  
  <pre><code>Data: infolog
  Data: filesize
  Data: fileend
  </code></pre>
  
  <p>Thanks.</p>