摘要
客户机/服务器模型是现代网络通信的重要模型之一。Linux操作系统依靠其强大的网络性能和安全体系结构成为了网络通信的主流平台。在局域网中,传统的计算机间通信方法需要单独架设服务器,客户机间的数据传输需要通过服务器进行传递,该方法繁琐且不易于使用。根据客户机/服务器模型的基本原理,利用多线程和套接字技术,设计了在Linux环境下不需要服务器支持的局域网通信系统,给出了系统的框架结构、实现流程与主要代码,实现了系统在局域网内的数据通信功能。
Client/Server model is one of the most important modern network communication models. Linux OS has become a primary network communication platform for its great network performance and security system. In a LAN environment, the traditional method of communication among computers needs to use one server. The data communication between clients must be through the server. The method is complicated and inconvenient to be used. Based on the principle of Client/Server model, using multi - thread and socket technologies. This paper designs a LAN communication system without the support of a server in Linux environment, provides the architecture, flow and main code of the system. The system achieves communication functions in LAN.
出处
《现代电子技术》
2007年第21期68-70,共3页
Modern Electronics Technique