下載
git clone https://github.com/unpbook/unpv13e.git
編譯
./configure # try to figure out all implementation differences
cd lib # build the basic library that all programs need
make # use "gmake" everywhere on BSD/OS systems
cd ../libfree # continue building the basic library
make
# note the following two lines are not needed on Linux systems
cd ../libroute # only if your system supports 4.4BSD style routing sockets
make # only if your system supports 4.4BSD style routing sockets
cd ../intro # build and test a basic client program
make daytimetcpsvr
make daytimetcpcli
# 開兩個終端,分別執行
./daytimetcpsvr
./daytimetcpcli 127.0.0.1