摘要
文章设计并实现了多线程网络通信程序平台,该平台提供了一个能够满足各种网络传输协议和格式的网络程序框架,程序框架采用了网络协议的实现与数据处理的实现相分离的结构,每一个网络连接对应一个独立线程,在框架的支持下同步运行。每一个连接线程都带有独立的数据缓冲区,缓冲区的大小可以随时进行调整。框架中的功能均能够在运行期间被停止或卸载,框架也能够在不重新启动的情况下加载新的功能,使得实时程序能够在功能不中断的情况下进行维护。
This article describes the design and implementation of a multi-thread network communication program platform. This platform offers a network program framework which supports a variety of network transport protocols and formats. The program framework adopts a structure of separated implementation of network protocol and data processing, each network connection corresponds an independent working thread running synchronously under the support of the framework. Each connection thread has its own data buffer, whose size can be adjusted at any time. Functions in the framework can be stopped or unloaded during the running of the framework, and new functions can be loaded without restart, so that the real-time program can be maintained without interruption.
出处
《电子技术(上海)》
2011年第10期18-20,共3页
Electronic Technology
关键词
软集成
实时性
连续运行
网络协议无关
功能耦合性
soft integration
real-time
continuous operation
network protocol independent
functional coupling