Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-19-2008, 03:46 AM   #1
Registered: Dec 2007
Posts: 73

Rep: Reputation: 15
difference b/w AF_ prefix and PF_ prefix related to socket

Hi all,

As we know that while initializing sockaddr_in structure's members we use AF_ prefix and PF_ prefix.

But what is the basic difference b/w these two conventions and where to use
which convention
Old 03-20-2008, 04:15 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,571

Rep: Reputation: 171Reputation: 171
AF_ means address families, when PF_ means protocol families, but in practice it's the same.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a way to have an rsync prefix? Meson Linux - General 1 02-27-2008 06:32 PM
Apache --prefix=??? graciejj_82 Linux - Software 1 06-19-2007 02:48 PM
Always -prefix=/usr? oneandoneis2 Linux From Scratch 5 07-28-2004 12:11 AM
Optimize/Prefix rogk Linux - Software 1 07-25-2004 05:04 AM
./configure --prefix=/??? mykrob Linux - Newbie 7 06-24-2004 09:59 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration