UNIX网络编程卷1源代码编译

下载

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

你可能感兴趣的:(network,网络,unix,c语言)