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
What is function in c with example?
please give me some tips for the placement in the TCS.
Explain the difference between strcpy() and memcpy() function?
What is getch() function?
Explain bitwise shift operators?
What is assert and when would I use it?
What are the 4 types of unions?
Why do we need a structure?
What is meant by type casting?
Why main function is special give two reasons?
What is a c token and types of c tokens?
What is derived datatype in c?
What is pointer and structure in c?
how could explain about job profile
What is bash c?