文件名称:Linux-A-named-pipe-experiment
-
所属分类:
- 标签属性:
- 上传时间:2013-03-24
-
文件大小:8.59kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
在Linux环境下用C语言编程,编程的主要内容是:命名管道的实验。包括:研究mkfifo命令,在当前目录下创建一个myfifo的命名管道
用mkfifo()函数实现相同的功能
编写一个服务器程序server.c,实现从管道myfifo中读取内容,并在终端中显示出来。打开一个命令行终端,运行server,然后打开另一个命令行终端,使用“cp 文件1 myfifo”命令把文件1的内容输出到myfifo,测试server.c的功能
编写客户机程序,实现把指定文件输出到myfifo的功能,从而实现和服务器程序的通信。测试该程序的功能。
-With the main content of the C programming language, programming in the Linux environment: Named Pipes experiments. Including: study mkfifo command to create a myfifo named pipe with mkfifo () function in the current directory to achieve the same functionality to write a server program server.c content achieve from the pipeline myfifo, read, and displayed in the terminal. Open a command line terminal, run the server, and then open another command line terminal the to " cp files 1 myfifo" command to output the contents of file 1 to myfifo, written test the functionality of the server.c client program to specify file output to functionality of myfifo, in order to achieve communication and server programs. To test the functionality of the program.
用mkfifo()函数实现相同的功能
编写一个服务器程序server.c,实现从管道myfifo中读取内容,并在终端中显示出来。打开一个命令行终端,运行server,然后打开另一个命令行终端,使用“cp 文件1 myfifo”命令把文件1的内容输出到myfifo,测试server.c的功能
编写客户机程序,实现把指定文件输出到myfifo的功能,从而实现和服务器程序的通信。测试该程序的功能。
-With the main content of the C programming language, programming in the Linux environment: Named Pipes experiments. Including: study mkfifo command to create a myfifo named pipe with mkfifo () function in the current directory to achieve the same functionality to write a server program server.c content achieve from the pipeline myfifo, read, and displayed in the terminal. Open a command line terminal, run the server, and then open another command line terminal the to " cp files 1 myfifo" command to output the contents of file 1 to myfifo, written test the functionality of the server.c client program to specify file output to functionality of myfifo, in order to achieve communication and server programs. To test the functionality of the program.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Linux-A named pipe experiment.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.