文件名称:Linux-A-named-pipe-experiment
介绍说明--下载内容均来自于网络,请自行研究使用
在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