CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - named pipe
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
ARM-PowerPC-ColdFire-MIPS
Embeded Linux
SCM
VxWorks
uCOS
DSP program
Windows CE
VHDL-FPGA-Verilog
Other Embeded program
QNX
hardware design
Open-source hardware
Search - named pipe - List
[
Embeded Linux
]
mkfifo
DL : 0
使用mkfifo创建有名管道并实现两个进程之间的通讯-Use mkfifo to create a named pipe communication between two processes
Date
: 2025-12-25
Size
: 2kb
User
:
夏秋末
[
Embeded Linux
]
Linux-A-named-pipe-experiment
DL : 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.
Date
: 2025-12-25
Size
: 9kb
User
:
weiwei
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.