title: What is the difference between AF_INET and PF_INET in socket programming?
body: <p>What is the difference between AF_INET and PF_INET in socket programming?</p>
  
  <p>I'm confused between using AF_INET and PF_INET in <code>socket()</code> and <code>bind()</code>.</p>
  
  <p>Also, how to give ip-address in <code>sin_addr</code> field?</p>