title: concurrent server tcp using fork()
body: <p>am trying to handle multiple clients using fork() in concurrent server tcp.
  it handles the first client but then when i run another client from linux terminal it keep on printing the else statement. its not creating child process to handle it</p>
  
  <p>server</p>
  
  <pre><code>while(1){
  comm_sock=accept(conn_sock, (struct sockaddr *)&amp;client_addr, (socklen_t *)&amp;client_addr);
  if(!fork()){
  close(conn_sock);
  send(comm_sock, "Data received", 13, 0);
  close(comm_sock);
  }
  else{
  cout&lt;&lt;"Parent cannot handle it"&lt;&lt;endl;
  close(comm_sock);
  }
  </code></pre>
  
  <p>can someone plz help me here?</p>