Usage of pj_ioqueue_sendto

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All
I have a small doubt on usage of pj_ioqueue_sendto(ckey, &write_op,
send_buf, &bytes, 0, &dst_addr,sizeof(dst_addr)).

Please note that memory for send_buf is allocated using malloc function.
 pj_ioqueue_sendto can return either success , pending or someother error.

Incase of success or error, I can free the memory allocated for send_buf.
Incase of pending I will not be able to free the  memory for send_buf.

So , when it is the right time to free the memory for send_buf, please
point with some pseudo code or example.

Thanks in advance

Kamal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120405/6c87489d/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux