Socket编程(C语言实现)—— 为何流式传输相似于管道?不区分边界?

一、管道实现: (1)代码实现:[root@localhost pipe]# cat pipe.c socket #include <stdio.h> #include <unistd.h> int main(void) { int i = 0; int aiPipe[2] = {0}; pid_t stPid = {0}; char acSendBuf[2] = {0}; char
相关文章
相关标签/搜索