freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

ns的網絡功能實體結構及類結構-文庫吧資料

2024-10-20 15:19本頁面
  

【正文】 addtarget { agent port } { $self instvar ptnotif_ foreach m [$self set ptnotif_] { $m attach $agent $port } } Ptnodif_是路由模塊組成的數組。 (%u,sl t)。 NsObject* nullagent = (NsObject*)TclObject::lookup(argv[2])。因為這一步完成了 – 路由模塊的加載 – Agent和 node的連接 tcl/lib/ Simulator instproc attachagent { node agent } { $node attach $agent …… } % _o33 info class Classifier/Port % _o32 info class Classifier/Port % _o34 info class invalid mand name _o34 這兩步創(chuàng)建了兩個對象 tcl/lib/ Node instproc attach { agent { port } } { $self instvar agents_ address_ dmux_ lappend agents_ $agent $agent set node_ $self $agent set agent_addr_ [AddrParams addr2id $address_] if { $dmux_ == ―‖ } {會進入這里,因為還沒有給 dmux賦過值 Use the default mask_ and port_ values set dmux_ [new Classifier/Port] point the node39。介紹一下 mand函數 Node instproc mkdefaultclassifier {} { Node instvar module_list_ At minimum we should enable base module foreach modname [Node set module_list_] { $self registermodule [new RtModule/$modname] } } Node instproc registermodule { mod } { $self instvar reg_module_ $mod register $self set reg_module_([$mod modulename]) $mod } module_list_是 Node的變量!只有 Base一個值 RtModule/Base instproc register { node } { $self next $node $self instvar classifier_ set classifier_ [new Classifier/Hash/Dest 32] $classifier_ set mask_ [AddrParams NodeMask 1] $classifier_ set shift_ [AddrParams NodeShift 1] XXX Base should ALWAYS be the first module to be installed. $node installentry $self $classifier_ } 每一個 RtModule/xxx在 register函數中都會 new一個 classifier Node instproc installentry { module clsfr {hook } } { $self instvar classifier_ mod_assoc_ hook_assoc_ if [info exists classifier_] { if [info exists mod_assoc_($classifier_)] { $self unregistermodule $mod_assoc_($classifier_) unset mod_assoc_($classifier_) } Connect the new classifier to the existing classifier chain, if there is any. if [info exists hook_assoc_($classifier_)] { if { $hook == target } { $clsfr target $hook_assoc($classifier_) } elseif { $hook != } { $clsfr install $hook $hook_assoc_($classifier_) } set hook_assoc_($clsfr) $hook_assoc_($classifier_) unset hook_assoc_($classifier_) } } set mod_assoc_($clsfr) $module set classifier_ $clsfr } 保存最后一次調用時的clsfr module列表,以 classifier為索引 classifier列表,以 classifier為索引 RtModule instproc register { node } { Attach to node and register routing notifications $self attachnode $node $node routenotify $self $node portnotify $self } 進入到 rtmodule的c++代碼中,把該節(jié)點的指針交給rtmodule的一個變量 Node instproc routenotify { module } { $self instvar rtnotif_ if {$rtnotif_ == } { set rtnotif_ $module } else { $rtnotif_ routenotify $module } $module cmd routenotify $self } RtModule instproc routenotify { module } { $sel
點擊復制文檔內容
教學課件相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1