[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] low_level_output question
From: |
John Kennedy |
Subject: |
[lwip-users] low_level_output question |
Date: |
Thu, 2 Apr 2009 16:15:31 -0600 |
Hi,
I'm porting lwip (using an RTOS and the socket API) and I have a question
regarding the low_level_output function.
If I can't send the pbuf immediately (netif busy), to avoid copying the pbuf,
I'd like to do the following:
* Increment the reference count to prevent lwip from re-using or freeing
the pbuf.
* Put the pbuf on my output queue and try to send it later.
* Return ERR_OK.
Later when the netif is not busy...
* Remove the pbuf from my output queue.
* Send the pbuf.
* Free the pbuf.
Will this scheme work with lwip?
Thanks,
John Kennedy
________________________________________
John Kennedy
Idaho Technology Inc.
390 Wakara Way
Salt Lake City, UT 84108, USA
USA: 1-800-735-6544
Bus:+1 (801)736-6354 x448
Fax:+1 (801)588-0507
http://www.idahotech.com/
________________________________________
CONFIDENTIALITY NOTICE: This E-mail and any attachments are confidential
information of the sender and are for the exclusive use of the intended
recipient. If you are not the intended recipient, be aware that any disclosure,
copying, distribution, or use of this E-mail or any attachment is prohibited.
If you have received this E-mail in error, please notify us immediately by
returning it to the sender and delete this copy from your system. Thank you for
your cooperation.