特牛生活网

Linux高级编程——网络通信实现TCP(1)_linux c tcp 高级编程_琛翀的博客-CSDN博客

网友收藏
文章浏览阅读2.8k次。基于TCP协议的文件传输(套接字)实例:客户端:只用于收文件;执行命令:./执行文件名 IP Port// 客户端 输入 ./执行文件 IP Port#include <stdio.h>#include <string.h>#include <stdlib.h>#include <sys/stat.h>#include <sys/types.h>#include <sys/socket.h>#include <_linux c tcp 高级编程