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

SOFIAPUBFUN sip_time_t nta_incoming_received ( nta_incoming_t irq,
su_nanotime_t *  return_nano 
)

When received.

Return timestamp from the reception of the initial request.

.

Definition at line 5302 of file nta.c.

References su_time_s::tv_sec, and su_time_s::tv_usec.

{
  su_time_t tv = { 0, 0 };

  if (irq)
    tv = irq->irq_received;

  if (return_nano)
    *return_nano = (su_nanotime_t)tv.tv_sec * 1000000000 + tv.tv_usec * 1000;

  return tv.tv_sec;
}


Generated by  Doxygen 1.6.0   Back to index