ns2的一些技巧

Suggested by ns2 manual, putting the below codes in your tcl script

	remove-all-packet-headers
	add-packet-header DSR ARP LL MAC CBR IP

 

In windows, there is NO doubt, the best IDE is Visual Studio (most of us do not really like Microsoft, but we have to admit, MS is the best software company on earth).
However, for ns2, the best IDE should be Eclipse -- both Windows and Linux

  • Installation Eclipse with CDT package.
  • Build ns2 through (Windows, you need cygwin. And either for Windows/Linux, don't forget to install the tcl library first).
  • Use the ns2 root path as the workspace path of your Eclipse to launch it.
  • Use Eclipse's C/C++ Perspective. Create a project for your ns2: "New" --> "C++ Project". Select the "Makefile project" --> "Empty project". Give the same ns2 sub directory name as the project name.
  • "Project" --> "Build All". Now you should be able to use Eclipse the Code/Compile/Debug ns2.
  • The most important feature you would get there is the "intellisense". Although Vi/Emacs both provide "Code completion", they are No-comparable -- "intellisense" has much more good features than "Code completion".
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值