Hi all,

I'm using su_msg_r objects to pass information between clones, using
`su_msg_create()' and `su_msg_send()'. These functions are perfect for
inter-clone communications (with threading enabled, so inter-thread
communication at the end).

Now, I may want to send a su_msg_r object to a given sofia-clone-thread, but
from a non-sofia-thread. The problem is that `su_msg_create()' needs to
specify both sender's and receiver's su_task_r, and in this case I don't
have the sender's su_task_r, as it is not a sofia-sip clone. I guess that
sender's su_task_r is needed in case reports/replies are needed to be sent
back from the receiver to the sender.

In my case, no such reply/report is needed, as I just need to dispatch the
su_msg_r and nothing else, so I was wondering if this other approach is
acceptable:

* Instead of `su_msg_create()', use `su_msg_new()'
* Then, instead of `su_msg_send()', use `su_msg_send_to()', as this last
function only needs the receiver's su_task_r.

Is this a correct approach?

Thanks,
-Aleksander
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to