title: Use write() system call to send a UDP broadcast
body: <p>I am doing some programming on Linux platform. </p>
  
  <p>I want to make a UDP broadcast. </p>
  
  <p>I set the socket option <code>SO_BROADCAST</code>, when I invoke the <code>sendto()</code> system call it perfectly sends the broadcast, but when I use <code>bind()</code> to bind the socket descriptor with the destination address and invoke the <code>write()</code> system call, it raises an error message:</p>
  
  <pre><code>Destination address required
  </code></pre>
  
  <p>Please give me some tips, thanks!</p>