在网络软件的开发中,常常用到数据可靠传输,目前虽然也有一些成熟可用的传输协议以及与之对应的传输插件,但是往往不能够满足项目的特定需要,需要对一些传输插件进行改造整合才能够纳为己用。并且软件编写完成后,往往因为应用环境的变化,需要重新修改代码进行性能调整,文中提出一种基于 UDP 的可配策略的数据传输协议,用户不需要关心底层数据传输流程的实现细节,只需在配置文件中修改数据传输策略就可满足不同环境下的传输需求,快速实现场景切换下的数据可靠传输。%Reliable data transmission is often used in network software development. Although some mature and available transport protocols and their corresponding transmission plugs exist at present,they could not meet the specific reguirements of the project, thus it is necessary to transform and integrate some transmis-sion plugs before incorporating them into your own. And after the completion of software programming, the code should be usually readjusted in its performance due to the changes of application environment. This paper proposes a UDP-based configurable strategy data transmission protocol, and the user needs no con-cern for implementation details of the underlying data transmission process. Data transmission strategy should only be modified in the configuration file,and thus it could meet the transmission demands in differ-ent transmission environments and achieve reliable data transmission under scene change.
展开▼