What is the difference between AF_INET and PF_INET in socket programming?

I’m confused between using AF_INET and PF_INET in socket() and bind().

Also, how to give ip-address in sin_addr field?

7 Answers
7

Leave a Reply

Your email address will not be published. Required fields are marked *