Lines Matching defs:event
3 * The source code for the ntp discrete event simulator.
9 * (Some code shamelessly based on the original NTP discrete event simulator)
148 /* Initialize the event queue */
156 /* Push a beep and a timer on the event queue */
157 enqueue(event_queue, event(0, BEEP));
158 enqueue(event_queue, event(simulation.sim_time + 1.0, TIMER));
167 /* Update all the clocks to the time on the event */
170 /* Execute the function associated with the event */
209 Event *event(double t, funcTkn f)
214 abortsim("get_node failed in event");
246 event(simulation.sim_time + (1 << EVENT_TIMEOUT), TIMER));
253 * creates a reply packet and pushes the reply packet onto the event queue
266 Event *e; /* Packet receive event */
355 * Create a packet event and insert it onto the event_queue at the
358 e = event(t4, PACKET);
390 /* Compute the time between the last update event and this update */
439 /* Define a function that processes a receive packet event.
461 /* Define a function to output simulation statistics on a beep event
473 enqueue(event_queue, event(e->time + simulation.beep_delay, BEEP));