next up previous contents index
Next: 11. Packet Headers and Up: 10. Timers Previous: 10.2 OTcl Timer class

   
10.3 Commands at a glance

Following is a list of methods for the class Timer. Note that many different types of timers have been derived from this base class (viz. LogTimer, Timer/Iface, Timer/Iface/Prune, CacheTimer, Timer/Scuba etc).

$timer sched delay
This command cancels any other event that may have been scheduled and re-schedules another event after time <delay>.

$timer resched delay
Similar to "sched" described above. Added to have similar APIs as that of the C++ timers.

$timer cancel
This cancels any scheduled event.

$timer destroy
This is similar to cancel. Cancels any scheduled event.

$timer expire
This command calls for a time-out. However the time-out procedure needs to be defined in the sub-classes.

All these procedures can be found in /tcl/mcast/timer.tcl.

\begin{figure}\vbox{\include{events}
}\end{figure}


2000-08-24