摘要: 管道下面是管道实现文件,pipe_imp.c,其中有客户端与服务器端函数。试验--管道实现头文件1 首先是#include:#include "cd_data.h"#include "cliserv.h"2 我们定义一些在此文件的其他函数中所需要的值:static int server_fd = -1;static pid_t mypid = 0;static char client_pipe_name[PATH_MAX + 1] = {‘/0’};static int client_fd = -1;static int client_write_fd 阅读全文
posted @ 2009-08-15 10:49 jlins 阅读(168) 评论(0) 推荐(0) 编辑