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

Does free set pointer to null?

949


What is dynamic dispatch in c++?

987


given post order,in order construct the corresponding binary tree

2722


What are runtime error?

1077


Sir i need notes for structure,functions,pointers in c language can you help me please

2348


What is an array? What the different types of arrays in c?

1100


I have a varargs function which accepts a float parameter?

994


Write a program to show the change in position of a cursor using c

993


What's the right way to use errno?

1085


Write a program to print all permutations of a given string.

1125


What is the c value paradox and how is it explained?

990


When should a type cast not be used?

1003


What is an auto variable in c?

1166


What is maximum size of array in c?

988


Explain the use of #pragma exit?

1108