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

SOFIAPUBFUN int su_msg_send ( su_msg_r  rmsg  ) 

Send a message.

The function su_msg_send() sends the message. The message is added to the recipients message queue, and recipient is waken up. The caller may not alter the message or the data associated with it after the message has been sent.

rmsg message handle
Return values:
0 if signal was sent successfully or handle was NULL,
-1 otherwise.

Definition at line 1101 of file su_root.c.

References su_msg_destroy(), su_msg_send(), and su_msg_s::sum_to.

Referenced by su_clone_stop(), su_msg_delivery_report(), and su_msg_send().


  if (rmsg[0]) {
    su_msg_t *msg = rmsg[0];

    if (msg->sum_to->sut_port) 
      return su_port_send(msg->sum_to->sut_port, rmsg);

    errno = EINVAL;
    return -1;

  return 0;       

Generated by  Doxygen 1.6.0   Back to index