bcast.tp
来自「BCAST Implementation for NS2」· TP 代码 · 共 43 行
TP
43 行
/******************************************************************* Copyright (C) 2004 Thomas Kunz, CRC Canada, BCAST for IPv4. DISTRIBUTED WITH NO WARRANTY, EXPRESS OR IMPLIED. See the GNU Library General Public License (file COPYING in directory application) for conditions of use and redistribution.*********************************************************************/protocols { bcast { hello-int: uint = 1; /* by default, send hello message every second */ buffer-size: uint = 10; /* by default, buffer last 10 packets */ reliability: bool=false;/* by default, run best-effort version */ proto_intf: text = "lo";/* use loopback device by default */ }} protocols { bcast { %modinfo: provides bcast; %modinfo: path "bcast/xorp_bcast"; %modinfo: statusmethod xrl; %modinfo: shutdownmethod xrl; hello-int { %set: xrl "bcast/bcast/1.0/set_hello_interval?new_int:i32=$(@)"; %get: xrl "bcast/bcast/1.0/get_hello_interval->old_int:i32"; } buffer-size { %set: xrl "bcast/bcast/1.0/set_buffer_size?new_buf:i32=$(@)"; %get: xrl "bcast/bcast/1.0/get_buffer_size->old_buf:i32"; } reliability { %set: xrl "bcast/bcast/1.0/set_reliability?reliability:bool=$(@)"; %get: xrl "bcast/bcast/1.0/get_reliability->reliability:bool"; } proto_intf { %set: xrl "bcast/bcast/1.0/set_interface?intf:txt=$(@)"; %get: xrl "bcast/bcast/1.0/get_interface->intf:txt"; } %activate: xrl "bcast/bcast/1.0/activate_bcast"; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?