next up previous contents index
Next: 33.2 Architecture Up: 33.1.2 Inserting a Loss Previous: 33.1.2.0.1 Creating a Loss

33.1.2.0.2 Inserting a Loss Module

A loss module can only be inserted after the corresponding receiver has joined the group. The example code below illustrates how a simulation script can introduce a loss module.
        set sessionhelper [\$ns create-session \$node \$src] # keep a handle to the loss module;
        \$ns at 0.1 "\$sessionhelper insert-depended-loss \$loss\_module \$rcvr"




2000-08-24