Hi all, I tryed the 'standard' echo example using raw sockets and in my configuration it works but sends each message 2 times. I debugged it and I found that the 2nd time the message is always sent inside the callback function for the received message (the echo replied by the echo server). Considering that the pbuf_free() is executed in the send function I really don't understand why it is already valid when the sent callback is executed. Its address is not null and the content of the payload is always the echo message.
If I remove the tcp_write() inside the message sent callback everything works fine. I don't understand also why there is the tcp_write() inside the callback considering that every action to receive and transmit a packet is done every 250 milliseconds calling sys_check_timeouts() and ethernetif_input(eth0Netif). Is it normal? Wasn't updated the example? Any answer/help will be appreciated. I am using lwip 1.4.1 on a NXP LPC1769 on an EA AOAA board using the echo example to test the troughput of the network. Cheers. logo * Massimo Manca*/, Micron Engineering/ via della Ferriera, 48 33170 Pordenone PN ITALIA Tel: 39 0434 1856131| Mobile: 39 349 4504979 www.micronengineering.it Twitter <http://s.wisestamp.com/links?url=https%3A%2F%2Ftwitter.com%2Fmassimomanca> LinkedIn <http://s.wisestamp.com/links?url=http%3A%2F%2Fit.linkedin.com%2Fpub%2Fmassimo-manca%2F7%2Fa15%2F479%2F> SlideShare <http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.slideshare.net%2Fmicronpn> Contact me: Skype micron.engineering Designed with WiseStamp - <http://s.wisestamp.com/links?url=http%3A%2F%2Fr1.wisestamp.com%2Fr%2Flanding%3Fu%3Daaa0e17b0c4ca423%26v%3D3.13.31%26t%3D1406878932897%26promo%3D10%26dest%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%253Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10>Get yours <http://s.wisestamp.com/links?url=http%3A%2F%2Fr1.wisestamp.com%2Fr%2Flanding%3Fu%3Daaa0e17b0c4ca423%26v%3D3.13.31%26t%3D1406878932897%26promo%3D10%26dest%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%253Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10> --- Questa e-mail è priva di virus e malware perché è attiva la protezione avast! Antivirus. http://www.avast.com
<<attachment: m_manca.vcf>>
_______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users