what is the differnce between AF_INET and PF_INET?

Answers were Sorted based on User's Feedback



what is the differnce between AF_INET and PF_INET?..

Answer / karn

AF stands for Address Family
PF for Protocol Family

Is This Answer Correct ?    32 Yes 0 No

what is the differnce between AF_INET and PF_INET?..

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

what is the differnce between AF_INET and PF_INET?..

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

what is the differnce between AF_INET and PF_INET?..

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

what is the differnce between AF_INET and PF_INET?..

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

Post New Answer

More C Interview Questions

What would happen to X in this expression: X += 15; (assuming the value of X is 5)

0 Answers  


What is anagram in c?

0 Answers  


how to find turn around time in operating system?

3 Answers  


write a program to find a given no. is divisible by 3 or not without using any arthimetic operators?

3 Answers   Broadcom, TCS,


write an algorithm and a program to count the number of elements in a circularly singly linked list

1 Answers   Ignou,






What are logical errors and how does it differ from syntax errors?

0 Answers  


dynamically allocate memory for linear array of n integers,store some elements in it and find some of them

1 Answers  


Program to swap the any two elements in an array containing N number of elements?

1 Answers   Bosch, Glenwood, Ugam Solutions,


a simple program in c language

5 Answers   IBM,


An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above

0 Answers  


write a program for egyptian fractions in c?

1 Answers   Satyam,


how to capitalise first letter of each word in a given string?

0 Answers  


Categories