[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] How to properly send packets of size greater than snd_b
From: |
Bill Auerbach |
Subject: |
Re: [lwip-users] How to properly send packets of size greater than snd_buf? |
Date: |
Wed, 18 Dec 2013 16:50:14 -0500 |
The tcp_sent callback should be used to continue to send data until all data
has been sent - for Raw API mode anyway. See the http_raw example for a
typical approach to this.
Bill
-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf
Of bradleytse
Sent: Wednesday, December 18, 2013 2:07 PM
To: address@hidden
Subject: [lwip-users] How to properly send packets of size greater than
snd_buf?
How am I supposed to send packets of size greater than the pcb's snd_buf?
Right now my snd_buf is 8192 bytes, but the packets I am sending can be
~150kb. I know that one of the suggested methods is to return control to
main, and then use the tcp_poll callback function to finish sending the data
once the snd_buf has cleared, but this method is way too slow and I cannot
afford to wait like this. I need to force the whole packet to send right
away (or at least as fast as the receive can receive).
I have tried using tcp_nagle_disable() and then tcp_output() but this does
not work. The snd_buf still does not clear out.
Any suggestions? I'm stumped at the moment.
--
View this message in context:
http://lwip.100.n7.nabble.com/How-to-properly-send-packets-of-size-greater-t
han-snd-buf-tp22109.html
Sent from the lwip-users mailing list archive at Nabble.com.
_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users