You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
echoping/SRC/ttcp/ttcpcliserv
Stephane Bortzmeyer 40d676b534 Initial revision 24 years ago
..
Makefile Initial revision 24 years ago
README Initial revision 24 years ago
cliserv.h Initial revision 24 years ago
error.c Initial revision 24 years ago
readstream.c Initial revision 24 years ago
sleepus.c Initial revision 24 years ago
tcpcli.c Initial revision 24 years ago
tcpclitime.c Initial revision 24 years ago
tcpserv.c Initial revision 24 years ago
tcpservtime.c Initial revision 24 years ago
timer.c Initial revision 24 years ago
ttcpcli.c Initial revision 24 years ago
ttcpclibig.c Initial revision 24 years ago
ttcpclitime.c Initial revision 24 years ago
ttcphttpcli.c Initial revision 24 years ago
ttcpserv.c Initial revision 24 years ago
ttcpservbig.c Initial revision 24 years ago
ttcpservtime.c Initial revision 24 years ago
udpcli.c Initial revision 24 years ago
udpclitime.c Initial revision 24 years ago
udpserv.c Initial revision 24 years ago
udpservtime.c Initial revision 24 years ago

README

The files in this archive are the example programs from Chapter 1 of
"TCP/IP Illustrated, Volume 3: TCP for Transactions, HTTP, NNTP, and
the UNIX Domain Protocols" by W. Richard Stevens (Addison-Wesley, 1996).

All the source code files assume tabs stop every 4 columns, not 8.  With
vi I use ":set tabstop=4".

The files with "time" in their name are versions that can be used to time
the client-server transactions (used for Figure 1.14 of the text).  The
three server programs with "time" in their name also allow a command-line
option specifying how long they should sleep, to simulate the server
processing time.  Also notice that these "time" clients have a doubly
nested loop: one for the request-reply size and another for the number
of iterations.

The two T/TCP files with "big" in their name define the request and reply
size 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 system

Then change the definitions of CC, CFLAGS, and LIBS in the Makefile,
as appropriate for your system.  Then you can "make all".