[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] class Node/Broadcast
The following is what I think that you can use to
create your node, but I didn't really try it though.
You might want to check against ns-lib.tcl to see if
it covers everything.
set node [new Node/Broadcast]
$ns_ set Node_([$node id]) $node
$ns_ add-node $node [$node id]
Kun-chan Lan
On Sat, 4 Aug 2001, fabio cappabianca wrote:
> hi all
> I'm working with mobile ip trying to modify it, i would like to know how
> to make a node able sending broadcast packets. In this node i have
> already attached an agent created by myself:
>
> set HA [$ns_ node 1.0.0]
> set miprogw0 [new Agent/MIPROGW ]
> $ns_ attach-agent $HA $miprogw0
>
> The thing i'm trying to do is that to use the class
> Node/Broadcast defined in ns-mip.tcl, but i don't know how to call it and
> how to refer it to my node.
>
> Excuse me if I have disturbed you, I would be very happy if you could
> give me some help with anything you know about the problem.
> regards
> Fabio
>
>
>
>
> ________________________________________________________________________________
> Sarica GRATUITAMENTE MSN Explorer all'indirizzo http://explorer.msn.com
>
>