摘要
在Windows系统上基于VC6.0开发平台,采用C/S(Client/Server)架构模式,模仿现有网络通信协议、C++语言编写,设计并实现一个简单的即时通信协议。系统设计利用了MFC框架提供的Windows Sockets进行网络编程,使用C++面向对象技术和面向对象的设计原则。设计与实现过程中,采用了多线程、数据共享等技术,可以在客户端同时运行多个不同的客户端线程,服务器可以同时响应多个客户的服务请求,通讯采用事先约定好的协议(数据结构)作为数据传输单位。
Based on the VC6.0 development platform in Windows system, using C+ + language and C/S (Client/Server) architecture model,imitates the existing network communication protocol, designs and realizes a simple instant communi- cation protocol.The system uses the Windows Sockets provided by the MFC framework for network programming, and u- sing C---]- object-oriented technology and object-oriented design principles. In the design and implementation process, u- sing multi-threaded, data sharing technologies, the system can run multiple different client threads at the same time, the server can simultaneously respond to multiple customer service requests. Communication takes a pre-agreed protocol (data structure) as a data transmission unit.
出处
《软件导刊》
2017年第2期153-155,共3页
Software Guide
关键词
即时通讯
协议设计
协议应用
Protocol Design
Instant Messaging
Protocol Application