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 |
Explain the difference between ++u and u++?
How many levels of indirection in pointers can you have in a single declaration?
0 Answers Agilent, ZS Associates,
write the output of following code .. main() { static int a[]={10,20,30,40,50}; int *ptr=a; static int arr[2][2]={1,2,3,4}; char str[]="ABCD * 4#"; char *s=str+2; int i,j; for(i=0;i<5,i++) printf("%d",*ptr++); for(i=0;i<2;i++) for(j=0;j<2;j++) printf("%d\n",*(*(n+i)+j)); printf("%c\n%c\n%c\n",*(str+2),*s++,*--s); }
read an array and search an element
Write a program for finding factorial of a number.
What is string constants?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
Identify the correct argument for the function call fflush () in ANSI C: A)stdout B)stdin C)stderr D)All the above
How can I read in an object file and jump to locations in it?
When we use void main and int main?
What is zero based addressing?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above