网站首页 站内搜索

搜索结果

查询Tags标签: cliaddr,共有 2条记录
  • 网络编程3:高并发服务器——多进程和多线程服务器设计(fork、pthread_create)

    1. 程序流程 多进程和多线程的服务器代码设计思路如下2. 程序代码 2.1 多进程服务器 #include <stdio.h> #include <string.h> #include <netinet/in.h> #include <arpa/inet.h> #include <signal.h> #include <sys/wait.h> #include…

    2021/5/3 7:25:22 人评论 次浏览
  • c/c++实现TCP服务器和客户端

    c/c++实现TCP服务器和客户端 TCP客户端代码TCP服务器代码TCP客户端代码 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/socket.h> #include <netinet/in.h> ​ #define MAXLINE 80…

    2021/4/23 12:25:19 人评论 次浏览
扫一扫关注最新编程教程