Re: socket() returns "Invalid argument". Why? (UNPv1)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris,

>I thought that,  AF_INET for example in the first argument stood 
>for Address_Family_Internet? Could be a misnomer however :)

Obviously, if I say the first argument of socket(2) is a Protocol Family, I'm thinking of PF_INET.

Steven's UNIX Network Programming v1 says the first argument to socket(2) is a Protocol Family. He explains the confusion around this, and says that as most code uses AF_INET instead PF_INET for the first argument to socket(), if AF_INET was defined to be something different to PF_INET, then lots of code would break.

I don't remember what POSIX says about it....

Fernando Gont



------------------------------------------------------------------
Murdock webmail version 1.0.0

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux