摘要
在对嵌入式系统网络通信应用情况分析的基础上,介绍了通信套接字(socket),详细说明了使用面向连接的socket进行网络通信的编程模型。针对实时控制系统网络通信的特点,结合VxWorks嵌入式实时操作系统的多任务机制,设计实现了VxWorks下基于面向连接socket的网络通信程序,并从任务划分、任务调度与优先级设置、任务间通信、网络连接监测、数据收发等方面阐述了设计重点与实现方法。
Based on the application analysis of embedded system network communication, the Socket is introduced and the programming model using SOCK_STREAM socket to implement network communication is described in detail. Based on the features of network communication of real-time control system, and combination the network communication program based on SOCKSTREAM socket in VxWorks is designed and implemented combining with the multi-task mechanism of VxWorks embedded real-time operating system. The key points of design and implementation method are described,from such aspects as task division, task schedule and task priority setting, intertask communication, network connection monitoring and data transceiving.
出处
《计算机与网络》
2013年第12期66-68,共3页
Computer & Network