您的位置:首页 > 其它

Learning UNIX Network Programming Volume 1 --- the first Chapter

2009-11-06 15:44 537 查看
1.1 simplily review it.

1.2 Read a simply daytime client programe. I am very surprised why set "recvline
= 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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: