[linux]使用socketpair实现父进程与子进程间的通讯

#include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <stdio.h> #include <stdlib.h> void child(int socket) { char *buf=NULL; size_t len; const char hello[] = "hello
相关文章
相关标签/搜索