Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Write a code to remove duplicates in a string.

1084


what is a constant pointer in C

1245


Can we use any name in place of argv and argc as command line arguments?

1125


What is assert and when would I use it?

1062


What is main function in c?

1135


Explain what is gets() function?

1117


How can I find out the size of a file, prior to reading it in?

1224


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

1046


What is c language in simple words?

1110


What is the difference between ā€˜g’ and ā€œgā€ in C?

4091


Explain b+ tree?

1125


Tell me when would you use a pointer to a function?

1119


What does c in a circle mean?

1128


Define C in your own Language.

1131


How many header files are in c?

1064