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 is define c?

0 Answers  


write a program to print the all 4digits numbers & whose squares must me even numbers?

2 Answers   Virtusa,


why we shiuld use main keyword in C

5 Answers  


5. What kind of sorting is this: SORT (k,n) 1.[Loop on I Index] repeat thru step2 for i=1,2,........n-1 2.[For each pass,get small value] min=i; repeat for j=i+1 to N do { if K[j]<k[min] min=j; } temp=K[i];K[i]=K[min];K[min]=temp; 3.[Sorted Values will be returned] A)Bubble Sort B)Quick Sort C)Selection Sort D)Merge Sort

2 Answers   Accenture,


What are pointers really good for, anyway?

0 Answers  


What is malloc and calloc?

0 Answers  


Write a code to determine the total number of stops an elevator would take to serve N number of people.

0 Answers   Expedia,


How do you determine whether to use a stream function or a low-level function?

0 Answers  


What is the use of void pointer and null pointer in c language?

0 Answers  


write a program in c language for the multiplication of two matrices using pointers?

8 Answers   Ignou,


#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?

1 Answers   Wipro,


main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }

0 Answers   Wilco,


Categories