what is the differnce between AF_INET and PF_INET?
Answers were Sorted based on User's Feedback
Answer / karn
AF stands for Address Family
PF for Protocol Family
| Is This Answer Correct ? | 32 Yes | 0 No |
Answer / hakim ali
there is no difference b/w AF_INET & PF_INET ...both have same interger value...
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / neenz
In some documentation, you'll see mention of a mystical "PF_INET". This is a weird etherial beast that is rarely seen in nature, but I might as well clarify it a bit here. Once a long time ago, it was thought that maybe a address family (what the "AF" in "AF_INET" stands for) might support several protocols that were referenced by their protocol family (what the "PF" in "PF_INET" stands for).
That didn't happen. Oh well. So the correct thing to do is to use AF_INET in your struct sockaddr_in and PF_INET in your call to socket(). But practically speaking, you can use AF_INET everywhere.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / aymlord
it is a hitorical differnce,
that the first one supports the ipv6 and the second dosen't.
| Is This Answer Correct ? | 13 Yes | 21 No |
Answer / anil jagtap
There is no difference between AF_INET and PF_INET just as
AF_PACKET == PF_PACKET.
The confusion because of some stupid naming standards(?)
| Is This Answer Correct ? | 13 Yes | 28 No |
Differentiate call by value and call by reference?
WAP to find that given no is small or capital
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} what would be the output?
Can we declare a function inside a function in c?
What is a MAC Address?
Why does the call char scanf work?
write a program to count the no of repaeted words in a line?
How can you convert integers to binary or hexadecimal?
implement OR gate without using any bitwise operator.
Whats wrong with the following function char *string() { char *text[20]; strcpy(text,"Hello world"); return text; }
What is c system32 taskhostw exe?
Do variables need to be initialized?