01-15-06 10:52 PM
In article <dqej42$b6h$1@ulysses.noc.ntua.gr>,
"stathis gotsis" <stathisgotsis@hotmail.com> wrote:
> Hello,
> I wonder how AF_INET is different from PF_INET when passed as the first
> parameter to socket(). My man only states PF_INET.
The original intent was that the AF_* constants would be used when
dealing with addresses, and PF_* when dealing with protocol suites.
However, in practice there's a one-to-one correspondence -- IP protocols
always use IP addresses, Appletalk protocols always use Appletalk
addresses, etc. So AF_INET == PF_INET, and over time the distinction
between the two sets was dropped.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
[ Post a follow-up to this message ]
|