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: [email protected] [mailto:[email protected]] On Behalf Of bradleytse Sent: Wednesday, December 18, 2013 2:07 PM To: [email protected] 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 [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
