UNP例子运行
来源:互联网 发布:sqrt在c语言中意思 编辑:程序博客网 时间:2024/06/11 10:26
运行书本中的程序。
1,首先,进入到Stevens的主页中下载原码
2,然后,编译程序,方法如下:
tar -zxvf unpv12e.tar.gz (-C dir)//解压文件
cd unpv12e
./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
cd ../libgai # the getaddrinfo() and getnameinfo() functions
make
cd ../libroute # only if your system supports 4.4BSD style routing sockets
make # only if your system supports 4.4BSD style routing sockets
cd ../libxti # only if your system supports XTI
make # only if your system supports XTI
到现在就配置好了环境了,后面要试验哪个例子,就到那个目录下(书上所标志),make name
下面是第一个例子,时间例子:
cd ../intro # build and test a basic client program
make daytimetcpsrv
make daytimetcpcli
此时会生成 daytimetcpsrv daytimetcpsrv.o daytimetcpcli daytimetcpcli.o
- UNP例子运行
- UNP daytime例子报文分析
- UNP
- UNP 卷一的服务器时间获取例子
- 运行 Unix网络编程 中的第一个例子 unp学习 实例的运行
- 运行 Unix网络编程 中的第一个例子 unp学习 实例的运行
- 运行 Unix网络编程 中的第一个例子 unp学习 实例的运行
- UNP:《UNIX网络编程》例子程序中所使用的包裹函数及部分常量
- Jasperreport 报表例子运行
- jpetstore例子运行记录
- 运行estuary例子
- storm运行wordcount例子
- MapReduce运行的例子
- flaskr例子的运行
- 运行java SWT例子
- unp.h的配置以及运行 Unix网络编程中的第一个例子
- unp 笔记
- UNP书中图
- Android JNI实例代码(二)
- 操作XML
- MP3文件格式解析
- DirectFB调试环境(directfbrc)
- 删除Windows 7中100M隐藏盘,合并为一个盘。【思路整理】
- UNP例子运行
- 一个按键液晶多级菜单设计方法
- 架构师职责范畴及架构师名词解析
- 获取textedit框中的内容
- 单片机c语言下lcd多级菜单的一种实现方法
- Windows下用Eclipse搭建C/C++开发环境
- Win7的一些操作技巧
- 今天开始决定写博客
- 高德纳—我就是上帝