title: What is the meaning of "sin_addr.s_addr " and "inet_addr"?
body: <p>What exactly is difference between <code>sin_addr.s_addr</code> and <code>inet_addr</code>?</p>
  
  <p><code>addr.sin_addr.s_addr = inet_addr("127.0.0.1");</code></p>
  
  <p>is what i am using in my programming - what does this achieve?</p>