Unix network programming

Hi!

I am working on fedora..
trying to execute BSD4.4 client-server program which includes "unp.h" header file...

While executing make command, I got error like,

"     expected " , " , " ; ",or ")" in connect_nonb file...ERROR 1  "

I tried to change mode of makefile but I can't get result.....:wall:

can Anybody help me to solve it???

So, not execute but compile. Seems like a malformed code in a generated file. Is that from make or the compiler? Usually, you get a file name and command line. Do you have a connect_nonb file? If compiler, try preprocessing to see the compiled file, usually 'cc -E'. The unp.h has a ton of predefines, to guide it for your system. An invalid combination might do this. Usually, my system or ./configure takes care of these for me.

Besides the good advice from DGPicket, download the source from the UNPv1 3rd edition here.

HTH, Lo�c

Just a nice book, or a different API?

It's the updated version of Stevens Classic Unix Network Programming (of course, not by Stevens himself). It adds new material, and I guess the examples are more likely to compile/work on recent Linux distro.

( a side note : I somehow keep looking at Stevens original book UNPv12e when looking for something; seldom UNPv13e - don't know really why )

Cheers, Lo�c