摘要
在Linux下开发网络通信系统可以充分发挥Linux系统出色的网络性能,本文介绍了在Linux操作系统下基于TCP/IP协议Socket套接口的通信机制以及多线程编程知识与技巧,并给出多线程方式实现多用户与服务端(C/S)并发通信模型的详细算法,最后展现了用C编写的多用户与服务器通信的应用实例并附有运行结果及截图。
Developing the network communication system in the OS of Linux can fully show the excellent speciality of Linux, This paper firstly introduced the socket communication mechanism and the knowledge of muhi-pthread programming, and it also gives the detailed algorithm of muhi-pthread way to accomplish multi-client to service model. In the end this paper exhibited a example application which written by C language with the result photos.
出处
《微计算机信息》
2009年第15期70-72,共3页
Control & Automation