Ashish forced the electrons to say: > I have just started to learn network programming. > I am compiling on linux. Is there any header file I am not including? I'd say you forgot #include <subject.h> Binand PS: Also, read the book once again, especially the appendix Stevens has on code common to all the programs in the book.