Logo Search packages:      
Sourcecode: sofia-sip version File versions  Download package

SOFIAPUBFUN int su_timer_set ( su_timer_t t,
su_timer_f  wakeup,
su_timer_arg_t arg 

Set the timer for the default interval.

Sets (starts) the given timer to expire after the default duration.

The timer must have an default duration.

t pointer to the timer object
wakeup pointer to the wakeup function
arg argument given to the wakeup function
0 if successful, -1 otherwise.

Definition at line 355 of file su_timer.c.

References su_now(), and su_timer_set().

Referenced by nea_server_create(), server_timer(), server_timer_init(), stun_keepalive(), stun_keepalive_timer_cb(), stun_obtain_shared_secret(), stun_send_binding_request(), and su_timer_set().

  su_timer_queue_t *timers = su_timer_tree(t, 1, "su_timer_set");

  if (timers == NULL)
    return -1;

  return su_timer_set0(timers, t, wakeup, arg, su_now(), t->sut_duration);

Generated by  Doxygen 1.6.0   Back to index