亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? ns-lib.tcl

?? NS2網(wǎng)絡(luò)仿真軟件是目前最為流行的網(wǎng)絡(luò)仿真模擬軟件
?? TCL
?? 第 1 頁 / 共 4 頁
字號(hào):
# -*-	Mode:tcl; tcl-indent-level:8; tab-width:8; indent-tabs-mode:t -*-## Copyright (c) 1996 Regents of the University of California.# All rights reserved.# # Redistribution and use in source and binary forms, with or without# modification, are permitted provided that the following conditions# are met:# 1. Redistributions of source code must retain the above copyright#    notice, this list of conditions and the following disclaimer.# 2. Redistributions in binary form must reproduce the above copyright#    notice, this list of conditions and the following disclaimer in the#    documentation and/or other materials provided with the distribution.# 3. All advertising materials mentioning features or use of this software#    must display the following acknowledgement:# 	This product includes software developed by the MASH Research# 	Group at the University of California Berkeley.# 4. Neither the name of the University nor of the Research Group may be#    used to endorse or promote products derived from this software without#    specific prior written permission.# # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF# SUCH DAMAGE.## @(#) $Header: /nfs/jade/vint/CVSROOT/ns-2/tcl/lib/ns-lib.tcl,v 1.212 2000/10/04 22:46:42 yewei Exp $## Word of warning to developers:# this code (and all it sources) is compiled into the# ns executable.  You need to rebuild ns or explicitly# source this code to see changes take effect.#proc warn {msg} {	global warned_	if {![info exists warned_($msg)]} {		puts stderr "warning: $msg"		set warned_($msg) 1	}}if {[info commands debug] == ""} {	proc debug args {		warn {Script debugging disabled.  Reconfigure with --with-tcldebug, and recompile.}	}}proc assert args {        if [catch "expr $args" ret] {                set ret [eval expr $args]        }        if {! $ret} {                error "assertion failed: $args"        }}proc find-max list {	set max 0	foreach val $list {		if {$val > $max} {			set max $val		}	}	return $max}proc bw_parse { bspec } {	if { [scan $bspec "%f%s" b unit] == 1 } {		set unit bps	}	regsub {[/p]s(ec)?$} $unit {} unit	if [string match {*B} $unit] {		set b [expr $b*8]		set unit "[string trimright B $unit]b"	}	switch $unit {		b { return $b }		kb { return [expr $b*1000] }		Mb { return [expr $b*1000000] }		Gb { return [expr $b*1000000000] }		default { 			puts "error: bw_parse: unknown unit `$unit'" 			exit 1		}	}}proc time_parse { spec } {	if { [scan $spec "%f%s" t unit] == 1 } {		set unit s	}	regsub {sec$} $unit {s} unit	switch $unit {		s { return $t }		ms { return [expr $t*1e-3] }		us { return [expr $t*1e-6] }		ns { return [expr $t*1e-9] }		ps { return [expr $t*1e-12] }		default { 			puts "error: time_parse: unknown unit `$unit'" 			exit 1		}	}}proc delay_parse { spec } {	return [time_parse $spec]}## Create the core OTcl class called "Simulator".# This is the principal interface to the simulation engine.#Class Simulator## XXX Whenever you modify the source list below, please also change the# OTcl script dependency list in Makefile.in#source ns-autoconf.tclsource ns-address.tclsource ns-node.tclsource ns-rtmodule.tclsource ns-hiernode.tclsource ns-mobilenode.tclsource ns-btnode.tclsource ns-bsnode.tclsource ns-link.tclsource ns-source.tclsource ns-compat.tclsource ns-packet.tclsource ns-queue.tclsource ns-trace.tclsource ns-random.tclsource ns-agent.tclsource ns-route.tclsource ns-errmodel.tclsource ns-intserv.tclsource ns-cmutrace.tclsource ns-mip.tclsource ns-sat.tclsource ../rtp/session-rtp.tclsource ../interface/ns-iface.tclsource ../lan/ns-mac.tclsource ../lan/ns-ll.tclsource ../lan/vlan.tclsource ../mcast/timer.tclsource ../mcast/ns-mcast.tclsource ../mcast/McastProto.tclsource ../mcast/DM.tclsource ../ctr-mcast/CtrMcast.tclsource ../ctr-mcast/CtrMcastComp.tclsource ../ctr-mcast/CtrRPComp.tclsource ../mcast/BST.tclsource ../mcast/srm.tclsource ../mcast/srm-ssm.tclsource ../mcast/mftp_snd.tclsource ../mcast/mftp_rcv.tclsource ../mcast/mftp_rcv_stat.tclsource ../mcast/McastMonitor.tclsource ../rlm/rlm.tclsource ../rlm/rlm-ns.tclsource ../session/session.tclsource ns-namsupp.tclsource ../mobility/dsdv.tclsource ../mobility/dsr.tclsource ../mobility/com.tclsource ../plm/plm.tclsource ../plm/plm-ns.tclsource ../plm/plm-topo.tcl# MPLSsource ../mpls/ns-mpls-simulator.tclsource ../mpls/ns-mpls-node.tclsource ../mpls/ns-mpls-ldpagent.tclsource ../mpls/ns-mpls-classifier.tclsource ns-default.tclsource ../emulate/ns-emulate.tcl# Obsolete modules#source ns-wireless-mip.tcl#source ns-nam.tclSimulator instproc init args {	$self create_packetformat	$self use-scheduler Calendar	$self set nullAgent_ [new Agent/Null]	$self set-address-format def	eval $self next $args}Simulator instproc nullagent {} {	$self instvar nullAgent_	return $nullAgent_}Simulator instproc use-scheduler type {	$self instvar scheduler_	if [info exists scheduler_] {		if { [$scheduler_ info class] == "Scheduler/$type" } {			return		} else {			delete $scheduler_		}	}	set scheduler_ [new Scheduler/$type]	$scheduler_ now}Simulator instproc delay_parse { spec } {	return [time_parse $spec]}Simulator instproc bw_parse { spec } {	return [bw_parse $spec]}## A simple method to wrap any object around# a trace object that dumps to stdout#Simulator instproc dumper obj {	set t [$self alloc-trace hop stdout]	$t target $obj	return $t}# New node structure## Add APT to support multi-interface: user can specified multiple channels# when config nod. Still need modifications in routing agents to make# multi-interfaces really work.   -chen xuan  07/21/00## Define global node configuration# $ns_ node-config -addressType flat/hierarchical#                  -adhocRouting   DSDV/DSR/TORA#                  -llType#                  -macType#                  -propType#                  -ifqType#                  -ifqLen#                  -phyType#                  -antType#		   -channel#                  -channelType#                  -topologyInstance#                  -wiredRouting   ON/OFF#                  -mobileIP       ON/OFF#                  -energyModel    "EnergyModel"#                  -initialEnergy  (in Joules)#                  -rxPower        (in W)#                  -txPower        (in W)#                  -idlePower      (in W)#                  -agentTrace  ON#                  -routerTrace ON #                  -macTrace OFF #                  -toraDebug OFF                #                  -movementTrace OFFSimulator instproc addressType  {val} { $self set addressType_  $val }Simulator instproc adhocRouting  {val} { $self set routingAgent_  $val }Simulator instproc llType  {val} { $self set llType_  $val }Simulator instproc macType  {val} { $self set macType_  $val }Simulator instproc propType  {val} { $self set propType_  $val }Simulator instproc propInstance  {val} { $self set propInstance_  $val }Simulator instproc ifqType  {val} { $self set ifqType_  $val }Simulator instproc ifqLen  {val} { $self set ifqlen_  $val }Simulator instproc phyType  {val} { $self set phyType_  $val }Simulator instproc antType  {val} { $self set antType_  $val }Simulator instproc channel {val} {$self set channel_ $val}Simulator instproc channelType {val} {$self set channelType_ $val}Simulator instproc topoInstance {val} {$self set topoInstance_ $val}Simulator instproc wiredRouting {val} {$self set wiredRouting_ $val}Simulator instproc mobileIP {val} {$self set mobileIP_ $val}Simulator instproc energyModel  {val} { $self set energyModel_  $val }Simulator instproc initialEnergy  {val} { $self set initialEnergy_  $val }Simulator instproc txPower  {val} { $self set txPower_  $val }Simulator instproc rxPower  {val} { $self set rxPower_  $val }Simulator instproc idlePower  {val} { $self set idlePower_  $val }Simulator instproc agentTrace  {val} { $self set agentTrace_  $val }Simulator instproc routerTrace  {val} { $self set routerTrace_  $val }Simulator instproc macTrace  {val} { $self set macTrace_  $val }Simulator instproc movementTrace  {val} { $self set movementTrace_  $val }Simulator instproc toraDebug {val} {$self set toraDebug_ $val }Simulator instproc MPLS { val } { 	if { $val == "ON" } {		Node enable-module "MPLS"	} else {		Node disable-module "MPLS"	}}Simulator instproc get-nodetype {} {	$self instvar addressType_ routingAgent_ wiredRouting_ 	set val ""	if { [info exists addressType_] && $addressType_ == "hierarchical" } {		set val Hier	}	if { [info exists routingAgent_] && $routingAgent_ != "" } {		set val Mobile	}	if { [info exists wiredRouting_] && $wiredRouting_ == "ON" } {		set val Base	}	if { [info exists wiredRouting_] && $wiredRouting_ == "OFF"} {		set val Base	}	if { [Simulator set mobile_ip_] } {		if { $val == "Base" && $wiredRouting_ == "ON" } {			set val MIPBS		}		if { $val == "Base" && $wiredRouting_ == "OFF" } {			set val MIPMH		}	}	return $val}Simulator instproc node-config args {        # Object::init-vars{} is defined in ~tclcl/tcl-object.tcl.        # It initializes all default variables in the following way:        #  1.  Look for pairs of {-cmd val} in args        #  2.  If "$self $cmd $val" is not valid then put it in a list of         #      arguments to be returned to the caller.        #         # Since we do not handle undefined {-cmd val} pairs, we ignore         # return value from init-vars{}.        set args [eval $self init-vars $args]        $self instvar addressType_  routingAgent_ propType_  macTrace_ \		routerTrace_ agentTrace_ movementTrace_ channelType_ channel_ \		chan topoInstance_ propInstance_ mobileIP_ rxPower_ \		txPower_ idlePower_        if [info exists macTrace_] {		Simulator set MacTrace_ $macTrace_	}        if [info exists routerTrace_] {		Simulator set RouterTrace_ $routerTrace_	}        if [info exists agentTrace_] {		Simulator set AgentTrace_ $agentTrace_	}        if [info exists movementTrace_] {		Simulator set MovementTrace_ $movementTrace_	}        # hacking for matching old cmu add-interface        # not good style, for back-compability ONLY	#	# Only create 1 instance of prop	if {[info exists propInstance_]} {		if {[info exists propType_] && [Simulator set propInstCreated_] == 0} {			warn "Both propType and propInstance are set. propType is ignored."		}	} else {		if {[info exists propType_]} {			set propInstance_ [new $propType_]			Simulator set propInstCreated_ 1		}	}		# Add multi-interface support: 	# User can only specify either channelType_ (single_interface as 	# before) or channel_ (multi_interface) 	# If both variables are specified, error! 	if {[info exists channelType_] && [info exists channel_]} { 		error "Can't specify both channel and channelType, error!"	} elseif {[info exists channelType_]} {		# Single channel, single interface		warn "Please use -channel as shown in tcl/ex/wireless-mitf.tcl"		if {![info exists chan]} {			set chan [new $channelType_]		} 	} elseif {[info exists channel_]} {		# Multiple channel, multiple interfaces		set chan $channel_ 	}	if [info exists topoInstance_] {		$propInstance_  topography $topoInstance_	}	# set address type, hierarchical or expanded	if {[string compare $addressType_ ""] != 0} {		$self set-address-format $addressType_ 	}	# set mobileIP flag	if { [info exists mobileIP_] && $mobileIP_ == "ON"} {		Simulator set mobile_ip_  1	} else {		if { [info exists mobileIP_] } {			Simulator set mobile_ip_ 0		}	}}# Default behavior is changed: consider nam as not initialized if # no shape OR color parameter is givenSimulator instproc node args {	$self instvar Node_ routingAgent_ wiredRouting_        if { [Simulator info vars EnableMcast_] != "" } {                warn "Flag variable Simulator::EnableMcast_ discontinued.\n\t\                      Use multicast methods as:\n\t\t\                        % set ns \[new Simulator -multicast on]\n\t\t\                        % \$ns multicast"                $self multicast                Simulator unset EnableMcast_        }        if { [Simulator info vars NumberInterfaces_] != "" } {                warn "Flag variable Simulator::NumberInterfaces_ discontinued.\n\t\                      Setting this variable will not affect simulations."                Simulator unset NumberInterfaces_        }		# wireless-ready node	if { [info exists routingAgent_] && ($routingAgent_ != "") } {		set node [eval $self create-wireless-node $args]		# for base node		if {[info exists wiredRouting_] && $wiredRouting_ == "ON"} {			set Node_([$node id]) $node		}		return $node	}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品一区二区三区影院| 国产精品久久久久久亚洲毛片| 国产精品中文字幕一区二区三区| 国产精品国产三级国产普通话蜜臀 | 国产农村妇女精品| 在线欧美一区二区| 国产成人一区在线| 亚洲第一主播视频| 国产精品久久夜| 精品成人a区在线观看| 在线精品观看国产| 不卡一区在线观看| 久久国产夜色精品鲁鲁99| 一区二区三区四区激情| 欧美激情艳妇裸体舞| 日韩精品中文字幕一区二区三区| 91麻豆免费看片| 国产麻豆成人精品| 蜜臀av一区二区在线观看| 一区二区三区日韩欧美| 中文字幕一区二区三区在线不卡| 日韩精品一区二区三区视频| 欧美日韩精品一区二区三区四区| k8久久久一区二区三区| 国产精品夜夜嗨| 麻豆国产精品视频| 图片区日韩欧美亚洲| 亚洲理论在线观看| 中文字幕中文字幕一区二区| 久久精品在这里| 2023国产精华国产精品| 欧美一区二区三区日韩| 欧美日韩精品系列| 91福利精品第一导航| 91在线视频免费观看| 成人激情动漫在线观看| 国产91精品入口| 高清国产午夜精品久久久久久| 欧美aaaaaa午夜精品| 天堂久久久久va久久久久| 亚洲国产精品麻豆| 亚洲妇熟xx妇色黄| 天天综合网天天综合色| 五月天网站亚洲| 日韩激情视频在线观看| 日韩精品一二三| 亚洲成人激情社区| 亚洲成年人影院| 午夜成人免费电影| 日韩成人av影视| 麻豆精品在线视频| 精品一区二区三区免费| 国产制服丝袜一区| 成人激情开心网| 91伊人久久大香线蕉| 色老汉一区二区三区| 欧美少妇性性性| 4438成人网| 欧美精品一区二区三区高清aⅴ| 26uuu亚洲综合色| 国产视频亚洲色图| 亚洲欧美国产高清| 亚洲成人免费电影| 久久99在线观看| 成人av在线电影| 在线日韩国产精品| 日韩精品一区二区三区视频在线观看 | 91香蕉视频污在线| 欧美影片第一页| 日韩午夜激情视频| 久久久www免费人成精品| 国产精品久久久久久久久免费桃花 | 91久久精品国产91性色tv| 欧美亚洲高清一区| 日韩精品一区二区三区三区免费| 国产亚洲成aⅴ人片在线观看| 国产精品久久久久三级| 亚洲成人第一页| 国产自产高清不卡| 一本色道a无线码一区v| 制服丝袜成人动漫| 欧美激情一区二区三区不卡| 亚洲影院免费观看| 精久久久久久久久久久| heyzo一本久久综合| 欧美欧美欧美欧美| 国产亚洲婷婷免费| 亚洲成人免费av| 丁香婷婷综合五月| 欧美福利电影网| 国产精品天美传媒| 日韩国产欧美在线视频| 粗大黑人巨茎大战欧美成人| 欧美美女喷水视频| 欧美激情资源网| 免费在线观看精品| 久久免费的精品国产v∧| 亚洲日本电影在线| 久久99国内精品| 在线观看区一区二| 国产欧美一区二区精品性| 亚洲aⅴ怡春院| aa级大片欧美| 久久先锋资源网| 丝袜美腿亚洲综合| 99国产精品国产精品毛片| 精品久久久久久久久久久久久久久久久 | 亚洲成人资源在线| 99精品欧美一区二区三区综合在线| 日韩丝袜美女视频| 亚洲男人的天堂一区二区| 国产一区 二区 三区一级| 884aa四虎影成人精品一区| 亚洲美女精品一区| 国产91对白在线观看九色| 欧美大黄免费观看| 天天免费综合色| 欧美视频在线一区二区三区 | 石原莉奈在线亚洲二区| 色综合天天做天天爱| 欧美国产一区视频在线观看| 久久se这里有精品| 777午夜精品视频在线播放| 亚洲伦理在线精品| 99久久伊人精品| 中文字幕的久久| 国产成人精品影视| 久久精品亚洲国产奇米99| 麻豆一区二区99久久久久| 欧美理论片在线| 午夜精品免费在线观看| 在线观看免费视频综合| 日韩理论在线观看| 亚洲精品一线二线三线无人区| 五月激情综合色| 欧美日韩久久一区二区| 亚洲一区电影777| 色狠狠综合天天综合综合| 亚洲美女屁股眼交| 一本到不卡精品视频在线观看| 自拍偷拍亚洲综合| 91丨porny丨在线| 亚洲女厕所小便bbb| 色婷婷精品大在线视频| 亚洲综合男人的天堂| 欧美曰成人黄网| 亚洲高清免费一级二级三级| 在线观看日韩高清av| 亚洲国产日日夜夜| 欧美二区在线观看| 奇米色777欧美一区二区| 精品美女一区二区三区| 国产麻豆视频精品| 国产精品乱码一区二区三区软件 | 中文字幕一区二区三区四区| eeuss鲁片一区二区三区| 亚洲美女视频在线| 欧美日韩另类一区| 另类中文字幕网| 国产天堂亚洲国产碰碰| 99久久国产综合精品麻豆| 一区二区三区四区在线| 精品视频色一区| 毛片av一区二区| 中文字幕不卡一区| 欧美中文一区二区三区| 日韩av二区在线播放| 久久人人爽人人爽| av中文字幕不卡| 香蕉久久夜色精品国产使用方法| 欧美一级电影网站| 成人精品鲁一区一区二区| 亚洲乱码国产乱码精品精小说| 8v天堂国产在线一区二区| 日韩精品自拍偷拍| 国产大陆a不卡| 一个色在线综合| 欧美mv日韩mv亚洲| 99re这里只有精品首页| 日韩国产精品91| 欧美经典一区二区| 欧美网站一区二区| 国产精品一级二级三级| 亚洲综合免费观看高清在线观看| 日韩一区二区免费电影| 成人av电影免费观看| 午夜不卡av免费| 国产精品美女一区二区三区| 3d动漫精品啪啪1区2区免费 | 国产a久久麻豆| 一区二区三区不卡视频| 精品久久久久久久久久久院品网 | 欧美亚一区二区| 国产福利一区二区| 午夜精品一区二区三区三上悠亚| 久久久久综合网| 911国产精品| 色综合网色综合| 国产福利一区在线| 日本美女一区二区|