ns-cmutrace.tcl
来自「NS-2.28的802.11e协议扩展源代码」· TCL 代码 · 共 45 行
TCL
45 行
CMUTrace instproc init { tname type } { $self next $tname $type $self instvar type_ src_ dst_ callback_ show_tcphdr_ set type_ $type set src_ 0 set dst_ 0 set callback_ 0 set show_tcphdr_ 0}CMUTrace instproc attach fp { $self instvar fp_ set fp_ $fp $self cmd attach $fp_}Class CMUTrace/Send -superclass CMUTraceCMUTrace/Send instproc init { tname } { $self next $tname "s"}Class CMUTrace/Recv -superclass CMUTraceCMUTrace/Recv instproc init { tname } { $self next $tname "r"}Class CMUTrace/Drop -superclass CMUTraceCMUTrace/Drop instproc init { tname } { $self next $tname "D"}Class CMUTrace/EOT -superclass CMUTraceCMUTrace/EOT instproc init { tname } { $self next $tname "x"}CMUTrace set src_ 0CMUTrace set dst_ 0CMUTrace set callback_ 0CMUTrace set show_tcphdr_ 0CMUTrace set off_sr_ 0CMUTrace/Drop set off_SR_ 0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?