Sir,
In the ping program 'ping.tcl', a 'recv' function has been defined under the
class 'Agent/Ping'.
Please tell me where this 'recv' function has been called from, as i could
not find any place in ' ping.tcl' where it has been called.


The exact from ping.tcl code is

#Define a 'recv' function for the class 'Agent/Ping'
Agent/Ping instproc recv {from rtt} {
        $self instvar node_
        puts "node [$node_ id] received ping answer from \
              $from with round-trip-time $rtt ms."
}


It would be very nice if you could give me a detailed explanantion of each
line and the variables in the attached code.

Reply via email to