Add UDP Protocol
bittorrent_connection.cc
send_udp
receive_udp
Line 59 ---> tcl.eval("new Agent/TCP/FullTcp/Newreno);
-------------------------------------------------------------
set udp [new Agent/UDP]
$ns attach-agent $node_(0) $udp
set null [new Agent/Null]
$ns attach-agent $node_(i) $null
$connect $udp $null
$ap attach-agent $udp
-------------------------------------------------------------
for { set i 0 } {$i <$opt(videoflow)} {incr i}
{ set udp($i) [new Agent/myUDP]
$ns attach-agent $node_(0) $udp($i)
$udp($i) set packetSize_$packetsize
$udp($i) set_filename sd_foreman_$i
}
send_udp
receive_udp
Line 59 ---> tcl.eval("new Agent/TCP/FullTcp/Newreno);
-------------------------------------------------------------
set udp [new Agent/UDP]
$ns attach-agent $node_(0) $udp
set null [new Agent/Null]
$ns attach-agent $node_(i) $null
$connect $udp $null
$ap attach-agent $udp
-------------------------------------------------------------
for { set i 0 } {$i <$opt(videoflow)} {incr i}
{ set udp($i) [new Agent/myUDP]
$ns attach-agent $node_(0) $udp($i)
$udp($i) set packetSize_$packetsize
$udp($i) set_filename sd_foreman_$i
}
ความคิดเห็น
แสดงความคิดเห็น