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

TPORT_DLL int tport_is_clear_to_send ( tport_t const *  self  ) 

Test if transport can be used to send message. .

Definition at line 322 of file tport.c.

References tport_is_clear_to_send(), tport_is_master(), tport_is_primary(), and tport_is_secondary().

Referenced by tport_is_clear_to_send(), and tport_tsend().

{
  return
    tport_is_master(self) ||
    tport_is_primary(self) ||
    (tport_is_secondary(self) &&
     tport_is_registered(self) &&
     self->tp_reusable &&
     !self->tp_closed &&
     !self->tp_send_close);
}


Generated by  Doxygen 1.6.0   Back to index