摘要:
多进程间通过消息队列通讯简单示例 头文件:proto.h #ifndef __PROTO_H__ #define __PROTO_H__ #define KEYPATH "/etc/services" #define KEYID 'a'#define NAMESIZE 1024 struct stu 阅读全文
posted @ 2022-08-03 10:05
*^VV^*
阅读(79)
评论(0)
推荐(0)
摘要:
伪代码实现通过匿名管道播放网络视频、音乐等。 示例:player.c(子读父写) #include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <sys/wait.h>#include <fcn 阅读全文
posted @ 2022-08-03 08:18
*^VV^*
阅读(47)
评论(0)
推荐(0)
摘要:
父子进程匿名管道通讯 示例:pipe.c(子读父写) #include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <sys/wait.h> #define BUFFSIZE 1024 int 阅读全文
posted @ 2022-08-03 08:07
*^VV^*
阅读(39)
评论(0)
推荐(0)
浙公网安备 33010602011771号