Hi Everyone, I have a question regarding setting up an agent to run on a particular port. I have tried doing this with a UDP agent. Below is a tcl code segment I used.
------------------------------------------------------------------------------------ set udp0 [new Agent/UDP/UdpSocket] $ns attach-agent $n0 $udp0 $udp0 set agent_port_ 5 set udp1 [new Agent/UDP/UdpSocket] $ns attach-agent $n2 $udp1 $udp1 set agent_port_ 5 $ns connect $udp1 $udp0 ------------------------------------------------------------------------------------ Upon running the simulation I get the following error --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- _o83: no target for slot 5 _o83 type: Classifier/Port content dump: classifier _o83 0 offset 0 shift 2147483647 mask 1 slots slot 0: _o82 (Agent/UDP) ---------- Finished standard no-slot{} default handler ---------- I have tried to set up both agents to run on port of each node. Could someone tell me if I am using the wrong approach to run particular agents on particular ports? If so what would be the correct method of achieving the require result. Thanks in advance, Sampath -- Sampath Ranasinghe [EMAIL PROTECTED]