When a timer expires, the event handler for the corresponding event (one of EV_TIMER1..EV_TIMER10) is invoked with the event and unique timer as parameters.
Timers may be cancelled with CNET_stop_timer to prevent them expiring (for example, if the acknowledgement frame arrives before the timer expires). Timers are automatically cancelled as a result of their handler being invoked.
|
will produce output identical to that from:
|
Requests that a new timer be created which will expire in the indicated number of milliseconds. One of the 10 timer queues may be requested by passing one of the event types EV_TIMER1..EV_TIMER10. A unique timer is returned to distinguish this newly created timer from all others. This timer should later be used in subsequent calls to CNET_stop_timer(). If a new timer cannot be created, NULLTIMER will be returned.
Possible errors: ER_BADARG.
Requests that the indicated timer be cancelled (before it has expired).
Possible errors: ER_BADTIMER.
Allows the CnetData value for the indicated CnetTimer value to be recovered. The timer is not cancelled.
Possible errors: ER_BADTIMER, ER_BADARG.
cnet was written and is maintained by Chris McDonald (chris@cs.uwa.edu.au) | ![]() |