title: How to send a message from server to all clients in c?
body: <p>I get which client send message to server with this code;</p>
  
  <pre><code>recvfrom(s, buf, BUFLEN, 0, (struct sockaddr *) &amp;si_other, &amp;slen));
  
  printf("Received packet from %s:%d\n", inet_ntoa(si_other.sin_addr), ntohs(si_other.sin_port));
  </code></pre>
  
  <p>And I can send message to this client with this code;</p>
  
  <pre><code>sendto(s, "data", recv_len, 0, (struct sockaddr*) &amp;si_other, slen);
  </code></pre>
  
  <p>But I want to send this message ("data") to all clients , not just one client. How can I do that ? </p>