我正在使用 OMNet++ 和 INET 来模拟 UDP 网络。UDPBurst
我稍微改变了这个例子:
- 更改
Router
为etherSwitch
- 用作
ThruputMeteringChannel
连接
现在我改变了ThruputMeteringChannel.cc
,所以我可以绘制图表:
- 从 ( http://kuepper.userweb.mwn.de/software.htm )复制文件 (
.c
& ).h
- 添加导入
chart.h
到ThruputMeteringChannel.cc
- 将 Chart 程序中的示例 1 添加到
initialize()
方法中
启动.ini
文件时,我在图形运行时环境中收到错误:
网络设置期间模块 (cModule) UDPBurst.host[0] (id=2) 出错:评估参数“tcpType”时出错:以下 NED 类型均不可用 TCP、TCP_IwIP、TCP_NSC、TCP_Node。
在我的控制台中,构建时没有创建“共享库”。但只有当我使用chart.h
PS:我在虚拟机上使用 Linux(Ubuntu 12.04)。