|
From: | Noam Weissman |
Subject: | Re: [lwip-users] Correct way to free pbufs after tcp_recv callback finished |
Date: | Tue, 28 Jun 2016 07:41:03 +0000 |
Dear Simon,
You are correct I confused tcp_received with tcp_accepted.... My mistake.
From the LwIP WIKI: Passive connection (Listen)Edit
tcp_new creates a temporary PCB calling tcp_listen pasing the temporary PCB as argument.
tcp_listen returns a new PCB, server PCB.
every connection creates a temporary PCB until the connection is closed. the above server PCB is never freed and stays live until the listening socket is closed.
The call to tcp_accepted with the server PCB !!
BR, Noam. From: lwip-users <lwip-users-bounces+address@hidden> on behalf of goldsimon <address@hidden>
Sent: Monday, June 27, 2016 8:22 PM To: Mailing list for lwIP users Subject: Re: [lwip-users] Correct way to free pbufs after tcp_recv callback finished Please read doc/rawapi.txt where this is documented. Noam, I'm a bit confused. The PCB passed to the recv callback should be the one passed to tcp_recved. To handle the listen callback, this is different... Simon Gesendet mit AquaMail für Android
Am 27. Juni 2016 5:31:01 nachm. schrieb Noam Weissman <address@hidden>:
|
[Prev in Thread] | Current Thread | [Next in Thread] |