[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
相關文章
相關標籤/搜索