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?
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?
Checking the header file solve's the problem. One can check for there system compiler.
For my system , AF_INET == PF_INET
AF == Address Family And PF == Protocol Family
Protocol families, same as address families.
