Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们正在尝试使用 VxWorks 的 UDP 多播。 使用命令行(->),我们用一些参数调用初始化函数,多播成功运行。
当我尝试从代码运行此方法时,初始化函数返回 OK(无错误),但不初始化多播 UDP 端口。
有问题吗?
需要注意的一件事是 TCP/IP 堆栈在 rootTask 完成后被初始化。
usrAppInit 函数在根任务的上下文中运行。如果您在 usrAppInit 中调用网络堆栈元素,则可能无法正常工作。
确保从优先级低于网络堆栈(以优先级 50 运行)的任务调用网络代码。