You could check how the httpd app does.
What I usually do is have a state variable shared among all the
callbacks, so the application can know what is the state of the connection.
___
lwip-users mailing list
lwip-users@nongnu.org
Using rawapi, how do I restrict connections to one, using the last requested
connection as the active one, and closing previous connections?
I've tried closing old connections in the accept callback, and closing old
connections in the poll callback. Both approaches work OK if there isn't any