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()>
socket()
bind()>
I found in Linux kernel source code that PF_INET and AF_INET are the same. The following code is from file include/linux/socket.h, line 204 of Linux kernel 3.2.21 tree.
/* Protocol families, same as address families. */ ... #define PF_INET AF_INET