title: Understanding INADDR_ANY for socket programming
body: <p>I am trying to program some sockets and so, on the server side, I use <code>htonl(INADDR_ANY)</code>. To the extent I understood, it seems to me that this function generates a random IP (am I correct ?). In fact, I want to bind my socket with my <code>localhost</code>. But if I run this </p>
  
  <pre><code>printf("%d",htonl(INADDR_ANY));
  </code></pre>
  
  <p>I get 0 as a return value. Could someone bring some explanation ?</p>