what is the differnce between AF_INET and PF_INET?
Answer Posted / 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 |
Post New Answer View All Answers
Write a code to remove duplicates in a string.
what is a constant pointer in C
Can we use any name in place of argv and argc as command line arguments?
What is assert and when would I use it?
What is main function in c?
Explain what is gets() function?
How can I find out the size of a file, prior to reading it in?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
What is c language in simple words?
What is the difference between āgā and āgā in C?
Explain b+ tree?
Tell me when would you use a pointer to a function?
What does c in a circle mean?
Define C in your own Language.
How many header files are in c?