readme

来自「tcpip协议第三卷源码,下载下来可直接编译」· 代码 · 共 27 行

TXT
27
字号
The files in this archive are the example programs from Chapter 1 of"TCP/IP Illustrated, Volume 3: TCP for Transactions, HTTP, NNTP, andthe UNIX Domain Protocols" by W. Richard Stevens (Addison-Wesley, 1996).All the source code files assume tabs stop every 4 columns, not 8.  Withvi I use ":set tabstop=4".The files with "time" in their name are versions that can be used to timethe client-server transactions (used for Figure 1.14 of the text).  Thethree server programs with "time" in their name also allow a command-lineoption specifying how long they should sleep, to simulate the serverprocessing time.  Also notice that these "time" clients have a doublynested loop: one for the request-reply size and another for the numberof iterations.The two T/TCP files with "big" in their name define the request and replysize to exceed one MSS (used for the example in Section 3.6 of the text).*Before* trying to make these programs, do something like	cc -c error.c sleepus.c	ar -crv libmisc.a error.o sleepus.o	ranlib libmisc.a	# needed for a BSD-derived systemThen change the definitions of CC, CFLAGS, and LIBS in the Makefile,as appropriate for your system.  Then you can "make all".

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?