Re: Difference between BSD sockets and Linux sockets

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

 



On Tue, Nov 06, 2007 at 10:26:30AM +0000, Mateus Interciso wrote:
> Hello, I was reading the Unix Network Programing, and there it sayd that 
> Linux Socket's was remade from scratch, instead of using BSD sockets, 
> what's the main difference between both of them? Does anyone knows?

Main difference is just that - re-implemented from scratch.

That is, normal user codes see no differences at all, and those who play
with socket options should know what they are doing and why and how.

At socket API level there is only one obscure detail in one setsockopt()
parameter set.  (man setsockopt, man 7 tcp)

When you use that book for application level programming, see always
"man xyz" on the function your are about to use, if there is some obscure
difference from BSD, although none that really matter do exist.

If you try to diverge from normal socket application usage into
more esoteric things of "what interfaces do I have in this system,
what are their addresses, etc." then some differences may manifest
or might not.


> Thanks a lot.
> Mateus

/Matti Aarnio
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
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