![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
网络编程
royliu1
这个作者很懒,什么都没留下…
展开
-
LINUX环境并发服务器的三种实现模型
服务器设计技术有很多,按使用的协议来分有TCP服务器和UDP服务器。按处理方式来分有循环服务器和并发服务器。 1 循环服务器与并发服务器模型 在网络程序里面,一般来说都是许多客户对应一个服务器,为了处理客户的请求,对服务端的程序就提出了特殊的要求。 目前最常用的服务器模型有: ·循环服务器:服务器在同一时刻只能响应一个客户端的请求 ·并发服务器:服务器在同一时刻可以转载 2014-12-23 11:08:37 · 598 阅读 · 0 评论 -
LINUX 的system()函数
#include int system(const char *string); 例:在~/myprogram/目录下有shell脚本test.sh,内容为 #!bin/bash #test.sh echo $HOME 在该目录下新建一个c文件systemtest.c,内容为: #include main()转载 2015-03-24 11:26:12 · 384 阅读 · 0 评论