作为一种高性能的嵌入式实时操作系统,VxWorks 在嵌入式系统中获得了广泛的应用。本文讨论了VxWorks 中基于socket 的C/S 网络通信原理,并利用这种网络通信原理设计了进程之间通信的公共模块。该模块应用于一个嵌入式实时系统中,承担任务/进程之 间的消息、数据传递的功能,取得了比较好的成效。 关键词 VxWorks;socket;网络通信;嵌入式系统 Abstract As an embedded real time operating system with high performance, VxWorks is widely used in embedded systems. This paper discusses the principle of Client/Server network communication based on socket in VxWorks, and develops a public module for communication between threads which is realized with this kind of network communication mechanism. Being used to traffic messages and data between tasks/threads, this module has favorable effect used in a specific embedded system. Keywords VxWorks;socket;Network communication;Embedded system