摘要
首先简要介绍了某一实时武器系统的网络组成,以及网络通信的基本结构。实时系统采用嵌入式操作系统VxWorks和TCP/IP网络通信协议。讨论了TCP协议与UDP协议各自适用的场合和优缺点。通过比较,系统采用了VxWorks系统下的UDP通信。接着介绍了Socket网络编程,并针对客户端/服务器通信模式的优缺点,给出了此实时系统的客户端与服务器的设计思路与步骤。最后给出了部分代码作为示例说明。
First,this paper gives out a brief introduction to the network of real-time weapons systems and the basic structure of the communication network.Embedded operating systems VxWorks and TCP/lP network communication protocol are applied to the real-time systems.Then the paper introduces TCP protocol and UDP protocols applicable occasions and the advan-tages and disadvantages of each,and finaly chose UDP protocols under VxWorks system.This paper also describes the socket network programming,and according to the advantages and disadvantages of client/server communication mode,the paper gave out the design ideas and steps of the real-time client and server systems.
出处
《工业控制计算机》
2014年第12期1-3,共3页
Industrial Control Computer