Well, my question may look like a basic stuff, but i am new to network programming side. I wish to know:
1) Is it always required to bind a socket in order to receive message from that? I saw a sniffer code (raw socket) one in which directly it is invoking recvfrom
and another piece of code in which it is invoking bind
and then a receive.
2) What is the difference between the AF_* and PF_* family? Is the later related to POSIX? Which is the one recommended ?