1.1 simplily review it.
1.2 Read a simply daytime client programe. I am very surprised why set "recvline[n] = 0; ". It means set the latest string is 0. This is a rule for C/C++ of char * except C++ of std::string.
how to compile this program.
commandline as follows : gcc -o daytimetcpcli.o -I../lib -lsocket -lnsl ../lib/error.o daytimetcpcli.c
complie it successfully.