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

TPORT_DLL int tport_delivered_from ( tport_t *  tp,
msg_t const *  msg,
tp_name_t  name[1] 
)

Return source transport name for delivered message

Definition at line 2864 of file tport.c.

References tport_delivered_from().

Referenced by tport_delivered_from().

{
  if (name == NULL)
    return -1;
  
  if (tp == NULL || msg == NULL || msg != tp->tp_master->mr_delivery->d_msg) {
    memset(name, 0, sizeof *name);
    return -1;
  }
  else {
    *name = *tp->tp_master->mr_delivery->d_from;
    return 0;
  }
}


Generated by  Doxygen 1.6.0   Back to index