Linux下的C语言编程——简单实现tcp客户端和服务器

如下程序均未作错误处理,等有时间必定完善服务器 客户端socket #include <stdio.h> #include <sys/socket.h> #include <stdlib.h> #include <netinet/in.h> #include <string.h> int main(int argc,char **argv) { int sockfd; int n; str
相关文章
相关标签/搜索