[lug] Unix vs. Linux programming for TCP/IP

D. Stimits stimits at attbi.com
Thu Sep 19 23:13:18 MDT 2002

bof wrote:
> Hello,
> I'd like to learn more about Unix programming in general and TCP/IP 
> programming in specific, and have been looking at the following sources:
>    Stevens's Advanced Programming in the Unix Environment (APUE)
>    Stevens's TCP/IP programming series (3 volumes)
>    Comer's Internetworking with TCP/IP (3 volumes)
> In several of these the C code examples appear to be written for Unix 
> --- the APUE book predates BSD4.4; the other Stevens's are for 
> BSD4.4-Lite; the volume 2 of Comer is for ANSI C (OS unknown), while his 
> volume 3 uses Linux.
> I wondering what kind of problems I might encounter by studying these 
> and doing the code examples under Red Hat Linux. I can install and use 
> FreeBSD 4.6 if necessary, but I know Linux better and would prefer to 
> use it.
> Any opinions?

You might find that in some places headers are different for a given set 
of functionality, but with rgrep it isn't hard to find the correct 
headers in the rare case that they don't match.

D. Stimits, stimits AT attbi.com

More information about the LUG mailing list